A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: cleanup
Ammar Ahmed6ad8d7ba1b68
diff --git a/apps/mobile/app/services/background-sync.ts b/apps/mobile/app/services/background-sync.tsindex f30d42fd6..5da6a277a 100644--- a/apps/mobile/app/services/background-sync.ts+++ b/apps/mobile/app/services/background-sync.ts@@ -111,10 +111,7 @@ async function onBackgroundSyncStarted() {try {if (!db.isInitialized) {await db.init();- } else {- await db.initCollections();}-const user = await db.user?.getUser();if (user) {await db.sync(true, false);@@ -130,14 +127,13 @@ async function onBackgroundSyncStarted() {const onBoot = async () => {try {if (!SettingsService.getProperty("backgroundSync")) {+ DatabaseLogger.info("BACKGROUND SYNC ON BOOT DISABLED");return;}DatabaseLogger.info("BOOT TASK STARTED");if (!db.isInitialized) {await db.init();- } else {- await db.initCollections();}await Notifications.setupReminders();@@ -147,6 +143,7 @@ const onBoot = async () => {}DatabaseLogger.info("BOOT TASK COMPLETE");} catch (e) {+ DatabaseLogger.error(e as Error);console.log(e);}};diff --git a/apps/mobile/share/store.js b/apps/mobile/share/store.jsindex 6c1aadeeb..1e77350f3 100644--- a/apps/mobile/share/store.js+++ b/apps/mobile/share/store.js@@ -25,10 +25,7 @@ import { MMKV } from "../app/common/database/mmkv";export async function initDatabase() {if (!db.isInitialized) {await db.init();- } else {- await db.initCollections();}- await db.notes.init();}const StorageKeys = {