repository has now first level cache

This commit is contained in:
zadam
2020-04-06 20:59:04 +02:00
parent 081693f263
commit 5c0355718f
7 changed files with 45 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ class NoteRevision extends Entity {
}
async getNote() {
return await repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
return await repository.getNote(this.noteId);
}
/** @returns {boolean} true if the note has string content (not binary) */