1 parent
c3dab3e4f8
commit
02321c33b2
18 files changed
+1271
-1331
No files matched your search
@@ -1,3 +1,3 @@
|
||||
import { AvailableSlotsService } from "@calcom/trpc/server/routers/viewer/slots/util";
|
||||
import { getAvailableSlots } from "@calcom/trpc/server/routers/viewer/slots/util";
|
||||
|
||||
export { AvailableSlotsService };
|
||||
export { getAvailableSlots };
|
||||
@@ -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
Reference in new issue
Block a user