diff --git a/server/src/controllers/schedule.controller.js b/server/src/controllers/schedule.controller.js index 85a38f7..89267d5 100644 --- a/server/src/controllers/schedule.controller.js +++ b/server/src/controllers/schedule.controller.js @@ -153,7 +153,7 @@ class ScheduleController { } let scheduleDetails = schedule.schedule_detail; - schedule.schedule_detail = null; + schedule.schedule_detail = []; await schedule.save() for (const detailUpdate of schedule_detail) {