Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix boot task

Ammar Ahmede52e74523a3a
diff --git a/apps/mobile/app/services/background-sync.ts b/apps/mobile/app/services/background-sync.ts
index 2ff2cf7a6..a02a444cd 100644
--- a/apps/mobile/app/services/background-sync.ts
+++ b/apps/mobile/app/services/background-sync.ts
@@ -142,6 +142,7 @@ const onBoot = async () => {
DatabaseLogger.info("BOOT TASK STARTED");
if (!db.isInitialized) {
+ await setupDatabase();
await db.init();
}