mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix bugs
This commit is contained in:
parent
29769ed91d
commit
9b5a44cef4
@ -104,7 +104,7 @@ const contextMenuOptions = {
|
|||||||
],
|
],
|
||||||
beforeOpen: async (event, ui) => {
|
beforeOpen: async (event, ui) => {
|
||||||
const node = $.ui.fancytree.getNode(ui.target);
|
const node = $.ui.fancytree.getNode(ui.target);
|
||||||
const branch = await treeCache.getBranch(branchId);
|
const branch = await treeCache.getBranch(node.data.branchId);
|
||||||
const note = await treeCache.getNote(node.data.noteId);
|
const note = await treeCache.getNote(node.data.noteId);
|
||||||
const parentNote = await treeCache.getNote(branch.parentNoteId);
|
const parentNote = await treeCache.getNote(branch.parentNoteId);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ async function forceNoteSync(req) {
|
|||||||
syncService.sync();
|
syncService.sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getChanged() {
|
async function getChanged(req) {
|
||||||
const lastSyncId = parseInt(req.query.lastSyncId);
|
const lastSyncId = parseInt(req.query.lastSyncId);
|
||||||
|
|
||||||
return await sql.getRows("SELECT * FROM sync WHERE id > ?", [lastSyncId]);
|
return await sql.getRows("SELECT * FROM sync WHERE id > ?", [lastSyncId]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user