mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
If the database hasn't been initialized (new install?) don't attempt to update our last synced id, as there is no db to grab it from (prevents running the server as a fresh install completely) (#1797)
Co-authored-by: Mark <mark@mhack.io>
This commit is contained in:
parent
a254199746
commit
744ed27d91
@ -391,8 +391,11 @@ sqlInit.dbReady.then(() => {
|
|||||||
setTimeout(cls.wrap(sync), 5000);
|
setTimeout(cls.wrap(sync), 5000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (sqlInit.isDbInitialized())
|
||||||
|
{
|
||||||
// called just so ws.setLastSyncedPush() is called
|
// called just so ws.setLastSyncedPush() is called
|
||||||
getLastSyncedPush();
|
getLastSyncedPush();
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
sync,
|
sync,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user