feature/IO-3096-GlobalNotifications - Checkpoint, App Queue
This commit is contained in:
@@ -292,8 +292,8 @@ const applySocketIO = async ({ server, app }) => {
|
||||
/**
|
||||
* Load Queues for Email and App
|
||||
*/
|
||||
const loadQueues = async ({ pubClient, logger, redisHelpers }) => {
|
||||
const queueSettings = { pubClient, logger, redisHelpers };
|
||||
const loadQueues = async ({ pubClient, logger, redisHelpers, ioRedis }) => {
|
||||
const queueSettings = { pubClient, logger, redisHelpers, ioRedis };
|
||||
|
||||
// Assuming loadEmailQueue and loadAppQueue return Promises
|
||||
const [notificationsEmailsQueue, notificationsAppQueue] = await Promise.all([
|
||||
@@ -329,7 +329,7 @@ const main = async () => {
|
||||
require("./server/web-sockets/web-socket");
|
||||
|
||||
// Initialize Queues
|
||||
await loadQueues({ pubClient: pubClient, logger, redisHelpers });
|
||||
await loadQueues({ pubClient: pubClient, logger, redisHelpers, ioRedis });
|
||||
|
||||
applyMiddleware({ app });
|
||||
applyRoutes({ app });
|
||||
|
||||
Reference in New Issue
Block a user