#98, sync to server now works as well + a lot of related changes

This commit is contained in:
azivner
2018-07-24 20:35:03 +02:00
parent 013714cb5c
commit 37ab7b4641
19 changed files with 153 additions and 65 deletions

View File

@@ -1,7 +1,6 @@
"use strict";
const utils = require('../services/utils');
const repository = require('../services/repository');
class Entity {
constructor(row = {}) {
@@ -25,7 +24,7 @@ class Entity {
}
async save() {
await repository.updateEntity(this);
await require('../services/repository').updateEntity(this);
return this;
}