Update apps/mobile/app/services/notifications.ts

Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com>
This commit is contained in:
Ammar Ahmed
2023-04-26 14:57:06 +05:00
committed by GitHub
parent 59442b9107
commit 8a138d960d

View File

@@ -209,8 +209,8 @@ const onEvent = async ({ type, detail }: Event) => {
data: `<p>${input} </p>`
}
});
await db.notes?.init();
if (!db.isInitialized) await db.init();
await db.notes?.init();
await db.sync(false, false);
useNoteStore.getState().setNotes();
break;