Skip to content

Feat/issues948#1069

Merged
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
memplethee-lab:feat/issues948
Jun 2, 2026
Merged

Feat/issues948#1069
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
memplethee-lab:feat/issues948

Conversation

@memplethee-lab
Copy link
Copy Markdown
Contributor

Closes #948
created booking-conflict.util.ts. The file includes:

✅ hasTimeOverlap() function:

Takes two date ranges (startDate, endDate)
Uses the standard overlap formula: aStart < bEnd && aEnd > bStart
Returns true for any partial or full overlap
Returns false for adjacent bookings (end of A === start of B is NOT an overlap)
Handles both Date objects and strings automatically
✅ findConflictingBookings() function:

Takes a new booking and array of existing bookings

Closes #949

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@memplethee-lab is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@memplethee-lab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 6a9b377 into DistinctCodes:main Jun 2, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants