MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / completeOnboarding

Function completeOnboarding

packages/web/src/actions.ts:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27////// Actions ///////
28export const completeOnboarding = async (): Promise<{ success: boolean } | ServiceError> => sew(() =>
29 withAuth(async ({ org, prisma }) => {
30 await prisma.org.update({
31 where: { id: org.id },
32 data: {
33 isOnboarded: true,
34 }
35 });
36
37 return {
38 success: true,
39 }
40 }));
41
42export const createApiKey = async (name: string): Promise<{ key: string } | ServiceError> => sew(() =>
43 withAuth(async ({ org, user, role, prisma }) => {

Callers 2

AlreadyLicensedStepFunction · 0.90
TrialStepFunction · 0.90

Calls 2

sewFunction · 0.90
withAuthFunction · 0.90

Tested by

no test coverage detected