enh
This commit is contained in:
parent
dabdbb74ea
commit
3ed324bde7
1 changed files with 4 additions and 10 deletions
|
|
@ -15,16 +15,10 @@ export const initFunc = async (): Promise<void> => {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue