* 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>
18 lines
475 B
TypeScript
18 lines
475 B
TypeScript
import { OrganizationRepository } from "@calcom/lib/server/repository/organization";
|
|
|
|
import type { TrpcSessionUser } from "../../../types";
|
|
import type { TAdminGet } from "./adminGet.schema";
|
|
|
|
type AdminGetOptions = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
input: TAdminGet;
|
|
};
|
|
|
|
export const adminGetHandler = async ({ input }: AdminGetOptions) => {
|
|
return await OrganizationRepository.adminFindById({ id: input.id });
|
|
};
|
|
|
|
export default adminGetHandler;
|