This commit is contained in:
Alex Holliday committed 2025-07-21 10:34:16 -07:00
1 parent 846564a17e
commit bfa6832beb
83 files changed
+338 -1249

No files matched your search

@@ -63,10 +63,7 @@ class MaintenanceWindowController {
await getMaintenanceWindowsByTeamIdQueryValidation.validateAsync(req.query);
const { teamId } = req.user;
const maintenanceWindows = await this.db.getMaintenanceWindowsByTeamId(
teamId,
req.query
);
const maintenanceWindows = await this.db.getMaintenanceWindowsByTeamId(teamId, req.query);
return res.success({
msg: this.stringService.maintenanceWindowGetByTeam,
@@ -81,9 +78,7 @@ class MaintenanceWindowController {
async (req, res, next) => {
await getMaintenanceWindowsByMonitorIdParamValidation.validateAsync(req.params);
const maintenanceWindows = await this.db.getMaintenanceWindowsByMonitorId(
req.params.monitorId
);
const maintenanceWindows = await this.db.getMaintenanceWindowsByMonitorId(req.params.monitorId);
return res.success({
msg: this.stringService.maintenanceWindowGetByUser,
@@ -110,10 +105,7 @@ class MaintenanceWindowController {
async (req, res, next) => {
await editMaintenanceWindowByIdParamValidation.validateAsync(req.params);
await editMaintenanceByIdWindowBodyValidation.validateAsync(req.body);
const editedMaintenanceWindow = await this.db.editMaintenanceWindowById(
req.params.id,
req.body
);
const editedMaintenanceWindow = await this.db.editMaintenanceWindowById(req.params.id, req.body);
return res.success({
msg: this.stringService.maintenanceWindowEdit,
data: editedMaintenanceWindow,