feature/IO-3096-GlobalNotifications - Checkpoint, App Queue

This commit is contained in:
Dave Richer
2025-02-18 13:38:57 -05:00
parent adb15a4748
commit c1ea8e8a3d
4 changed files with 171 additions and 16 deletions

View File

@@ -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 });