add put route, controller, and db method for maintenance window

This commit is contained in:
Alex Holliday committed 2024-10-09 11:33:12 +08:00
1 parent 7c5c821fdd
commit 114cfd6cb7
6 files changed
+63

No files matched your search

+2
View File
@@ -123,6 +123,7 @@ const {
deleteMaintenanceWindowById,
deleteMaintenanceWindowByMonitorId,
deleteMaintenanceWindowByUserId,
editMaintenanceWindowById,
} = require("./modules/maintenanceWindowModule");
//****************************************
@@ -186,6 +187,7 @@ module.exports = {
deleteMaintenanceWindowById,
deleteMaintenanceWindowByMonitorId,
deleteMaintenanceWindowByUserId,
editMaintenanceWindowById,
createNotification,
getNotificationsByMonitorId,
deleteNotificationsByMonitorId,
@@ -188,6 +188,18 @@ const deleteMaintenanceWindowByUserId = async (userId) => {
}
};
const editMaintenanceWindowById = async (
maintenanceWindowId,
maintenanceWindowData
) => {
try {
} catch (error) {
error.service = SERVICE_NAME;
error.method = "editMaintenanceWindowById";
throw error;
}
};
module.exports = {
createMaintenanceWindow,
getMaintenanceWindowsByTeamId,
@@ -195,4 +207,5 @@ module.exports = {
deleteMaintenanceWindowById,
deleteMaintenanceWindowByMonitorId,
deleteMaintenanceWindowByUserId,
editMaintenanceWindowById,
};