From 3ed324bde7006a773a4e776a2a8385f6a841ab8f Mon Sep 17 00:00:00 2001 From: shafi54 <108669266+shafi-aviz@users.noreply.github.com> Date: Sat, 7 Feb 2026 00:12:32 +0530 Subject: [PATCH] enh --- apps/backend/src/lib/init.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/backend/src/lib/init.ts b/apps/backend/src/lib/init.ts index e665aa1..0483e50 100755 --- a/apps/backend/src/lib/init.ts +++ b/apps/backend/src/lib/init.ts @@ -15,16 +15,10 @@ export const initFunc = async (): Promise => { try { console.log('Starting application initialization...'); - // Initialize all stores - await initializeAllStores(); - - // Notification queue and worker are initialized via import - console.log('Notification queue and worker initialized'); - - // Start post order handler (Redis Pub/Sub subscriber) - await startOrderHandler(); - - + await Promise.all([ + initializeAllStores(), + startOrderHandler(), + ]); console.log('Application initialization completed successfully'); } catch (error) {