From 1b4b66e36de3d22ddbca2090f29ac95ff2dad3b2 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 19 Jun 2025 12:12:34 +0800 Subject: [PATCH] inject notification utils --- server/index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/server/index.js b/server/index.js index 0753af995..99be6de7a 100755 --- a/server/index.js +++ b/server/index.js @@ -73,6 +73,7 @@ import StatusService from "./service/statusService.js"; // Notification Service and dependencies import NotificationService from "./service/notificationService.js"; +import NotificationUtils from "./service/notificationUtils.js"; // Buffer Service and dependencies import BufferService from "./service/bufferService.js"; @@ -173,13 +174,19 @@ const startApp = async () => { ); const bufferService = new BufferService({ db, logger }); const statusService = new StatusService({ db, logger, buffer: bufferService }); - const notificationService = new NotificationService( + const notificationUtils = new NotificationUtils({ + stringService, + emailService, + }); + + const notificationService = new NotificationService({ emailService, db, logger, networkService, - stringService - ); + stringService, + notificationUtils, + }); const redisService = new RedisService({ Redis: IORedis, logger });