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 {
|
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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue