migrate organizations from clerk to in-house

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-06-16 19:32:53 +02:00
parent 84ac68fe63
commit c7dbc2f7c4
27 changed files with 523 additions and 294 deletions

View File

@@ -12,7 +12,7 @@ type Props = {
const Connect = async ({ params: { projectId } }: Props) => {
const orgs = await getCurrentOrganizations();
const organizationSlug = orgs[0]?.slug;
const organizationSlug = orgs[0]?.id;
if (!organizationSlug) {
throw new Error('No organization found');
}

View File

@@ -17,7 +17,7 @@ type Props = {
const Verify = async ({ params: { projectId } }: Props) => {
const orgs = await getCurrentOrganizations();
const organizationSlug = orgs[0]?.slug;
const organizationSlug = orgs[0]?.id;
if (!organizationSlug) {
throw new Error('No organization found');
}

View File

@@ -112,10 +112,10 @@ const Tracking = ({
value={field.value}
items={
organizations
.filter((item) => item.slug)
.filter((item) => item.id)
.map((item) => ({
label: item.name,
value: item.slug,
value: item.id,
})) ?? []
}
onChange={field.onChange}