Skip to content

Commit

Permalink
Add new WEBAPP_NEW_ORG and API_V2_NEW_ORG sources
Browse files Browse the repository at this point in the history
  • Loading branch information
joeauyeung committed Feb 9, 2025
1 parent da6bb07 commit b7cdc6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const AddNewTeamsFormChild = ({
orgId: org.id,
moveTeams,
teamNames: fields.map((field) => field.name),
creationSource: CreationSource.WEBAPP,
creationSource: CreationSource.WEBAPP_NEW_ORG,
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const CreateANewOrganizationFormChild = ({
handleSubmit={(v) => {
if (!createOrganizationMutation.isPending) {
setServerErrorMessage(null);
createOrganizationMutation.mutate({ ...v, creationSource: CreationSource.WEBAPP });
createOrganizationMutation.mutate({ ...v, creationSource: CreationSource.WEBAPP_NEW_ORG });
}
}}>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const CreateANewPlatformFormChild = ({ session }: { session: Ensure<SessionConte
createOrganizationMutation.mutate({
...v,
slug: `${v.name.toLocaleLowerCase()}-platform-${uuid().substring(0, 20)}`,
creationSource: CreationSource.API_V2,
creationSource: CreationSource.API_V2_NEW_ORG,
});
}
}}>
Expand Down
2 changes: 2 additions & 0 deletions packages/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ enum CreationSource {
API_V2 @map("api_v2")
WEBAPP @map("webapp")
SELF_SERVE_ADMIN @map("self_serve_admin")
WEBAPP_NEW_ORG @map("webapp_new_org")
API_V2_NEW_ORG @map("api_v2_new_org")
}

model Host {
Expand Down

0 comments on commit b7cdc6c

Please sign in to comment.