Update super-admin-dal.ts

This commit is contained in:
Daniel Hougaard
2024-06-21 19:06:10 +02:00
parent 7ab5c02000
commit 1aaca12781

View File

@@ -19,9 +19,13 @@ export const superAdminDALFactory = (db: TDbClient) => {
)
.first();
if (!config) {
return null;
}
return {
defaultAuthOrgSlug: config?.defaultAuthOrgSlug || null,
...config
...config,
defaultAuthOrgSlug: config?.defaultAuthOrgSlug || null
} as TSuperAdmin & { defaultAuthOrgSlug: string | null };
};