diff --git a/backend/src/utils/timeUtils.ts b/backend/src/utils/timeUtils.ts index 13d31ea..5e0f4d3 100644 --- a/backend/src/utils/timeUtils.ts +++ b/backend/src/utils/timeUtils.ts @@ -19,6 +19,7 @@ export async function hasOverlappingEntries( const count = await prisma.timeEntry.count({ where: { userId, + deletedAt: null, ...(excludeId ? { id: { not: excludeId } } : {}), // An entry overlaps when it starts before our end AND ends after our start. startTime: { lt: endTime },