refactor out common dependenceis

This commit is contained in:
Alex Holliday committed 2025-07-25 10:16:29 -07:00
1 parent ddf3e8251d
commit dc321580c3
20 files changed
+170 -233

No files matched your search

+2 -6
View File
@@ -4,14 +4,10 @@ import BaseController from "./baseController.js";
const SERVICE_NAME = "NotificationController";
class NotificationController extends BaseController {
constructor({ notificationService, stringService, statusService, db, errorService }) {
super();
constructor(commonDependencies, { notificationService, statusService }) {
super(commonDependencies);
this.notificationService = notificationService;
this.stringService = stringService;
this.statusService = statusService;
this.db = db;
this.errorService = errorService;
this.asyncHandler = errorService.asyncHandler;
}
testNotification = this.asyncHandler(