Skip to content

fix: issue with cancelScheduler not being called in some cases when deleting a booking#2213

Merged
DonKoko merged 3 commits intomainfrom
fix-cancelScheduler-signature-and-usage
Nov 26, 2025
Merged

fix: issue with cancelScheduler not being called in some cases when deleting a booking#2213
DonKoko merged 3 commits intomainfrom
fix-cancelScheduler-signature-and-usage

Conversation

@DonKoko
Copy link
Copy Markdown
Contributor

@DonKoko DonKoko commented Nov 26, 2025

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
shelf-docs Ignored Ignored Preview Nov 26, 2025 4:08pm

@DonKoko DonKoko requested a review from Copilot November 26, 2025 15:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where the scheduler cancellation was not being called when deleting or cancelling bookings that were not in OVERDUE or ONGOING status. The fix ensures that all bookings with active scheduler references have their schedulers properly cancelled, regardless of booking status.

Key changes:

  • Modified cancelScheduler to require non-null booking parameter and log errors when scheduler reference is missing
  • Updated deleteBooking to fetch and cancel schedulers for all bookings, not just OVERDUE/ONGOING ones
  • Fixed bulkDeleteBookings and bulkCancelBookings to cancel schedulers for all bookings with references, not just active ones

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread app/modules/booking/service.server.ts
@DonKoko DonKoko merged commit 1a9a711 into main Nov 26, 2025
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

Development

Successfully merging this pull request may close these issues.

2 participants