feat: add health data management workspace
This commit is contained in:
@@ -5,6 +5,7 @@ import { cookies } from "next/headers";
|
||||
|
||||
import { jsonFailure } from "@/modules/core/server/api";
|
||||
import { recordAuditLog } from "@/modules/core/server/audit";
|
||||
import { seedDefaultWorkspaceData } from "@/modules/core/server/default-workspace-data";
|
||||
import { getDatabase } from "@/modules/core/server/db";
|
||||
import { getPermissionsForRole, hasPermission, seedOrganizationRoles } from "@/modules/core/server/permissions";
|
||||
import {
|
||||
@@ -275,6 +276,7 @@ export async function setupFirstPlatformAdmin(input: {
|
||||
})
|
||||
.onConflictDoNothing();
|
||||
}
|
||||
await seedDefaultWorkspaceData(created.organization.id);
|
||||
|
||||
const organization = toOrganization(created.organization);
|
||||
const publicAccount = toPublicAccount(created.account, created.platformRole.key, organization);
|
||||
|
||||
Reference in New Issue
Block a user