* 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>
16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
import setDefaultConferencingApp from "@calcom/app-store/_utils/setDefaultConferencingApp";
|
|
|
|
import type { TrpcSessionUser } from "../../../types";
|
|
import type { TSetDefaultConferencingAppSchema } from "./setDefaultConferencingApp.schema";
|
|
|
|
type SetDefaultConferencingAppOptions = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
input: TSetDefaultConferencingAppSchema;
|
|
};
|
|
|
|
export const setDefaultConferencingAppHandler = async ({ ctx, input }: SetDefaultConferencingAppOptions) => {
|
|
return await setDefaultConferencingApp(ctx.user.id, input.slug);
|
|
};
|