add missing await to
This commit is contained in:
1 parent
ddb40bb56b
commit
349646639c
1 file changed
+1
-1
@@ -203,7 +203,7 @@ const deleteMaintenanceWindowByUserId = async (userId) => {
|
|||||||
|
|
||||||
const editMaintenanceWindowById = async (maintenanceWindowId, maintenanceWindowData) => {
|
const editMaintenanceWindowById = async (maintenanceWindowId, maintenanceWindowData) => {
|
||||||
try {
|
try {
|
||||||
const editedMaintenanceWindow = MaintenanceWindow.findByIdAndUpdate(
|
const editedMaintenanceWindow = await MaintenanceWindow.findByIdAndUpdate(
|
||||||
maintenanceWindowId,
|
maintenanceWindowId,
|
||||||
maintenanceWindowData,
|
maintenanceWindowData,
|
||||||
{ new: true }
|
{ new: true }
|
||||||
|
|||||||
Reference in new issue
Block a user