initial work on note fulltext (schema changes, updating...)

This commit is contained in:
zadam
2019-03-10 17:02:23 +01:00
parent 05374becfd
commit d25a1e3ed9
11 changed files with 469 additions and 142 deletions

View File

@@ -7,6 +7,7 @@ const protectedSessionService = require('../services/protected_session');
const repository = require('../services/repository');
const sql = require('../services/sql');
const dateUtils = require('../services/date_utils');
const noteFulltextService = require('../services/note_fulltext');
const LABEL = 'label';
const LABEL_DEFINITION = 'label-definition';
@@ -687,6 +688,10 @@ class Note extends Entity {
delete pojo.titleCipherText;
delete pojo.noteContent;
}
async afterSaving() {
noteFulltextService.triggerNoteFulltextUpdate(this.noteId);
}
}
module.exports = Note;