refactoring and more work with clerk

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-07 23:28:55 +01:00
parent a9cbff2306
commit 86d2d0750f
61 changed files with 703 additions and 727 deletions

View File

@@ -1,9 +1,9 @@
import { getOrganizations } from '@/server/services/organization.service';
import { getCurrentOrganizations } from '@/server/services/organization.service';
import { CreateOrganization } from '@clerk/nextjs';
import { redirect } from 'next/navigation';
export default async function Page() {
const organizations = await getOrganizations();
const organizations = await getCurrentOrganizations();
if (organizations.length === 0) {
return <CreateOrganization />;