This commit is contained in:
shafi54 2026-02-07 00:12:32 +05:30
parent dabdbb74ea
commit 3ed324bde7

View file

@ -15,16 +15,10 @@ export const initFunc = async (): Promise<void> => {
try { try {
console.log('Starting application initialization...'); console.log('Starting application initialization...');
// Initialize all stores await Promise.all([
await initializeAllStores(); initializeAllStores(),
startOrderHandler(),
// 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();
console.log('Application initialization completed successfully'); console.log('Application initialization completed successfully');
} catch (error) { } catch (error) {