Files
cal.diy/packages
Udit Takkar e2f45bdf5a perf: improve checkIsAvailable in getAvailable slots (#18352)
* refactor: Update booking query to use userId and optimize availability check logic

- Changed the booking query to use userId instead of nested user object for filtering active bookings.
- Refactored availability check logic to improve readability and performance by using valueOf() for time comparisons and consolidating multiple checks into a single return statement.

* fix: update tests

* chore: use toDate()

* tests: add checkavailable unit tests
2024-12-27 16:01:54 +00:00
..
2024-12-20 20:01:15 +00:00
2023-08-15 11:59:16 -07:00
2024-12-27 11:17:18 +00:00
2024-03-07 11:38:40 -03:00
2024-12-23 14:06:29 +05:30