support for updating entities etc.

This commit is contained in:
azivner
2018-01-29 23:35:36 -05:00
parent 6fa6891496
commit 35c7b54176
6 changed files with 36 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
const Entity = require('./entity');
class NoteRevision extends Entity {
static get tableName() { return "note_revisions"; }
async getNote() {
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
}