From 8a138d960debca5c50a65c8ccf340d8332bc61ce Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Wed, 26 Apr 2023 14:57:06 +0500 Subject: [PATCH] Update apps/mobile/app/services/notifications.ts Co-authored-by: Abdullah Atta Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> --- apps/mobile/app/services/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.ts index d26f6586b..714eb238b 100644 --- a/apps/mobile/app/services/notifications.ts +++ b/apps/mobile/app/services/notifications.ts @@ -209,8 +209,8 @@ const onEvent = async ({ type, detail }: Event) => { data: `

${input}

` } }); - await db.notes?.init(); if (!db.isInitialized) await db.init(); + await db.notes?.init(); await db.sync(false, false); useNoteStore.getState().setNotes(); break;