refactored backend to use new naming convention for modules

This commit is contained in:
azivner
2018-04-01 21:27:46 -04:00
parent c765dbc5cf
commit e2921a648d
44 changed files with 305 additions and 310 deletions

View File

@@ -1,7 +1,7 @@
"use strict";
const sql = require('./sql');
const sync_table = require('../services/sync_table');
const syncTableService = require('../services/sync_table');
let entityConstructor;
@@ -55,7 +55,7 @@ async function updateEntity(entity) {
const primaryKey = entity[entity.constructor.primaryKeyName];
await sync_table.addEntitySync(entity.constructor.tableName, primaryKey);
await syncTableService.addEntitySync(entity.constructor.tableName, primaryKey);
});
}