fix():fix merge

This commit is contained in:
Matthieu Haineault 2025-11-13 13:54:01 -05:00
parent e72b63116c
commit 30cc41955b

View File

@ -163,14 +163,8 @@ export class ShiftsUpdateDeleteService {
for (let j = i + 1; j < shifts.length; j++) {
const shift_a = shifts[i];
const shift_b = shifts[j];
<<<<<<< HEAD
if (shift_a.date !== shift_b.date) continue;
if (shift_a.id === shift_b.id) continue;
=======
if (shift_a.date !== shift_b.date || shift_a.id === shift_b.id) continue;
>>>>>>> 37b150d87c98746a3cb23bbe36ee9e364c6a613d
const has_overlap = overlaps(
{ start: toHHmmFromString(shift_a.start_time), end: toHHmmFromString(shift_a.end_time) },
{ start: toHHmmFromString(shift_b.start_time), end: toHHmmFromString(shift_b.end_time) },