mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
created repository object to access entities
This commit is contained in:
@@ -4,7 +4,7 @@ const Entity = require('./entity');
|
||||
|
||||
class NoteRevision extends Entity {
|
||||
async getNote() {
|
||||
return this.sql.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
||||
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user