mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
#98, sync to server now works as well + a lot of related changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user