update to entity creates sync event

This commit is contained in:
azivner
2018-01-30 20:12:19 -05:00
parent 35c7b54176
commit 5217339209
6 changed files with 10 additions and 0 deletions

View File

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