refactor: get available slots service (#22340)

* refactor: GetAvailableSlotsService

* chore: add todo comments where DI is needed

* chore: bump platform libs

* chore: fix unit tests

* fix: only instantiate AvailableSlotsService once per service

* Update packages/trpc/server/routers/viewer/slots/util.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix: bind this on all functions with reporting

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Morganandcubic-dev-ai[bot] authored and GitHub committed 2025-07-09 12:15:09 +01:00
1 parent 59b55e40b5
commit 7ada02177d
18 files changed
+1341 -1277

No files matched your search

+2 -2
View File
@@ -1,3 +1,3 @@
import { getAvailableSlots } from "@calcom/trpc/server/routers/viewer/slots/util";
import { AvailableSlotsService } from "@calcom/trpc/server/routers/viewer/slots/util";
export { getAvailableSlots };
export { AvailableSlotsService };