mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* perf: Move OOO-related tRPC procedures to new routers * Moved test file * push fix for import path in tests * fix trpc response url that we wait for --------- Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: sean-brydon <[email protected]>
13 lines
423 B
TypeScript
13 lines
423 B
TypeScript
import { TravelScheduleRepository } from "@calcom/lib/server/repository/travelSchedule";
|
|
import type { TrpcSessionUser } from "@calcom/trpc/server/types";
|
|
|
|
type GetTravelSchedulesOptions = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
};
|
|
|
|
export const getTravelSchedulesHandler = async ({ ctx }: GetTravelSchedulesOptions) => {
|
|
return await TravelScheduleRepository.findTravelSchedulesByUserId(ctx.user.id);
|
|
};
|