mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* 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 <[email protected]>
22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
import { OrganizationOnboardingRepository } from "@calcom/lib/server/repository/organizationOnboarding";
|
|
|
|
import type { TrpcSessionUser } from "../../../types";
|
|
|
|
type OrganizationOnboarding = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
};
|
|
|
|
export async function getOrganizationOnboardingHandler({ ctx }: OrganizationOnboarding) {
|
|
const { user: loggedInUser } = ctx;
|
|
|
|
const organizationOnboarding = await OrganizationOnboardingRepository.findByOrgOwnerEmail(
|
|
loggedInUser.email
|
|
);
|
|
|
|
return organizationOnboarding;
|
|
}
|
|
|
|
export default getOrganizationOnboardingHandler;
|