Revert "refactor: GetAvailableSlotsService (#22321)" (#22334)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-07-08 14:28:59 -07:00
1 parent c3dab3e4f8
commit 02321c33b2
18 files changed
+1271 -1331

No files matched your search

@@ -1,6 +1,6 @@
import type { IncomingMessage } from "http";
import { AvailableSlotsService } from "../slots/util";
import { getAvailableSlots } from "../slots/util";
import type { TGetTeamScheduleInputSchema } from "./getTeamSchedule.schema";
export type GetTeamScheduleOptions = {
@@ -13,6 +13,5 @@ interface ContextForGetSchedule extends Record<string, unknown> {
}
export const getTeamScheduleHandler = async ({ ctx, input }: GetTeamScheduleOptions) => {
const availableSlotsService = new AvailableSlotsService();
return await availableSlotsService.getAvailableSlots({ ctx, input });
return await getAvailableSlots({ ctx, input });
};
@@ -1,7 +1,6 @@
import type { GetScheduleOptions } from "./types";
import { AvailableSlotsService } from "./util";
import { getAvailableSlots } from "./util";
export const getScheduleHandler = async ({ ctx, input }: GetScheduleOptions) => {
const availableSlotsService = new AvailableSlotsService();
return await availableSlotsService.getAvailableSlots({ ctx, input });
return await getAvailableSlots({ ctx, input });
};
File diff suppressed because it is too large. Load diff