mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
db upgrades are now handled transparently in the background without bothering the user, closes #119
This commit is contained in:
@@ -22,13 +22,6 @@ let syncServerCertificate = null;
|
||||
async function sync() {
|
||||
try {
|
||||
await syncMutexService.doExclusively(async () => {
|
||||
if (!await sqlInit.isDbUpToDate()) {
|
||||
return {
|
||||
success: false,
|
||||
message: "DB not up to date"
|
||||
};
|
||||
}
|
||||
|
||||
const syncContext = await login();
|
||||
|
||||
await pushSync(syncContext);
|
||||
|
||||
Reference in New Issue
Block a user