Description
There is a logic bug in backend/controllers/routineController.js inside both the createRoutine and updateRoutine functions caused by unsafe type coercion.
When the server calculates the endTime of a routine task to check for scheduling overlaps, it relies on the + operator:
const endTime = item.startTime + item.duration;
Description
There is a logic bug in
backend/controllers/routineController.jsinside both thecreateRoutineandupdateRoutinefunctions caused by unsafe type coercion.When the server calculates the
endTimeof a routine task to check for scheduling overlaps, it relies on the+operator: