* fix trpc session circle dep * fixes trpc session cirlce dep * fix relative imports * fix more imports to use types and not trpc * fix exports * Fixed types --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com>
19 lines
573 B
TypeScript
19 lines
573 B
TypeScript
import { WorkflowRepository } from "@calcom/lib/server/repository/workflow";
|
|
import type { TrpcSessionUser } from "@calcom/trpc/server/types";
|
|
|
|
import type { TGetVerifiedNumbersInputSchema } from "./getVerifiedNumbers.schema";
|
|
|
|
type GetVerifiedNumbersOptions = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
input: TGetVerifiedNumbersInputSchema;
|
|
};
|
|
|
|
export const getVerifiedNumbersHandler = async ({ ctx, input }: GetVerifiedNumbersOptions) => {
|
|
return await WorkflowRepository.getVerifiedNumbers({
|
|
userId: ctx.user.id,
|
|
teamId: input.teamId,
|
|
});
|
|
};
|