mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
renaming of sql methods to fit getRows/getEntities model
This commit is contained in:
@@ -10,7 +10,11 @@ class Note {
|
||||
}
|
||||
|
||||
async attributes() {
|
||||
return this.sql.getAll("SELECT * FROM attributes WHERE noteId = ?", [this.noteId]);
|
||||
return this.sql.getRows("SELECT * FROM attributes WHERE noteId = ?", [this.noteId]);
|
||||
}
|
||||
|
||||
async revisions() {
|
||||
return this.sql.getRows("SELECT * FROM note_revisions WHERE noteId = ?", [this.noteId]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user