mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
note revisions changes WIP
This commit is contained in:
@@ -57,6 +57,11 @@ async function getNotes(noteIds) {
|
||||
return notes;
|
||||
}
|
||||
|
||||
/** @returns {Promise<NoteRevision|null>} */
|
||||
async function getNoteRevision(noteRevisionId) {
|
||||
return await getEntity("SELECT * FROM note_revisions WHERE noteRevisionId = ?", [noteRevisionId]);
|
||||
}
|
||||
|
||||
/** @returns {Promise<Branch|null>} */
|
||||
async function getBranch(branchId) {
|
||||
return await getEntity("SELECT * FROM branches WHERE branchId = ?", [branchId]);
|
||||
|
||||
Reference in New Issue
Block a user