implement editing maintenance windows
This commit is contained in:
1 parent
e3c0944062
commit
ad9d735127
8 files changed
+148
-47
No files matched your search
@@ -206,6 +206,12 @@ const editMaintenanceWindowById = async (
|
||||
maintenanceWindowData
|
||||
) => {
|
||||
try {
|
||||
const editedMaintenanceWindow = MaintenanceWindow.findByIdAndUpdate(
|
||||
maintenanceWindowId,
|
||||
maintenanceWindowData,
|
||||
{ new: true }
|
||||
);
|
||||
return editedMaintenanceWindow;
|
||||
} catch (error) {
|
||||
error.service = SERVICE_NAME;
|
||||
error.method = "editMaintenanceWindowById";
|
||||
|
||||
Reference in new issue
Block a user