mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
refactoring of note deletion
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const utils = require('../services/utils');
|
||||
const repository = require('../services/repository');
|
||||
|
||||
class Entity {
|
||||
constructor(row) {
|
||||
@@ -10,6 +11,10 @@ class Entity {
|
||||
this[key] = row[key];
|
||||
}
|
||||
}
|
||||
|
||||
async save() {
|
||||
await repository.updateEntity(this);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Entity;
|
||||
Reference in New Issue
Block a user