The function cloneCalendarTasksToCareTasks is currently permanently making all included tasks in the period be assgined to the opening shift. (careShiftId). Need to make it so whenever a new shift is about to start, we move all future already created careTasks to be moved to this next currentShift.
The function cloneCalendarTasksToCareTasks is currently permanently making all included tasks in the period be assgined to the opening shift. (careShiftId). Need to make it so whenever a new shift is about to start, we move all future already created careTasks to be moved to this next currentShift.
Poblem: