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
@@ -18,16 +18,12 @@ import BaseController from "./baseController.js";
const SERVICE_NAME = "monitorController";
class MonitorController extends BaseController {
constructor({ db, settingsService, jobQueue, stringService, emailService, monitorService, errorService }) {
super();
this.db = db;
constructor(commonDependencies, { settingsService, jobQueue, emailService, monitorService }) {
super(commonDependencies);
this.settingsService = settingsService;
this.jobQueue = jobQueue;
this.stringService = stringService;
this.emailService = emailService;
this.monitorService = monitorService;
this.errorService = errorService;
this.asyncHandler = errorService.asyncHandler;
}
async verifyTeamAccess(teamId, monitorId) {