mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix recent notes (db & sync version increase)
This commit is contained in:
@@ -78,13 +78,14 @@ async function forceNoteSync(req) {
|
||||
|
||||
for (const branchId of await sql.getColumn("SELECT branchId FROM branches WHERE isDeleted = 0 AND noteId = ?", [noteId])) {
|
||||
await syncTableService.addBranchSync(branchId);
|
||||
await syncTableService.addRecentNoteSync(branchId);
|
||||
}
|
||||
|
||||
for (const noteRevisionId of await sql.getColumn("SELECT noteRevisionId FROM note_revisions WHERE noteId = ?", [noteId])) {
|
||||
await syncTableService.addNoteRevisionSync(noteRevisionId);
|
||||
}
|
||||
|
||||
await syncTableService.addRecentNoteSync(noteId);
|
||||
|
||||
log.info("Forcing note sync for " + noteId);
|
||||
|
||||
// not awaiting for the job to finish (will probably take a long time)
|
||||
|
||||
Reference in New Issue
Block a user