Skip to content

Commit

Permalink
fix update schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
augustus281 committed Jun 1, 2024
1 parent ec309df commit ae71cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/controllers/schedule.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ae71cd4

Please sign in to comment.