mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
split hash checks per table with recent notes not reported into frontend as error
This commit is contained in:
@@ -38,7 +38,7 @@ async function addEntitySync(entityName, entityId, sourceId) {
|
||||
if (!sync_setup.isSyncSetup) {
|
||||
// this is because the "server" instances shouldn't have outstanding pushes
|
||||
// useful when you fork the DB for new "client" instance, it won't try to sync the whole DB
|
||||
await sql.execute("UPDATE options SET opt_value = (SELECT MAX(id) FROM sync) WHERE opt_name = 'last_synced_push'");
|
||||
await sql.execute("UPDATE options SET opt_value = (SELECT MAX(id) FROM sync) WHERE opt_name IN('last_synced_push', 'last_synced_pull')");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user