Update super-admin-dal.ts

This commit is contained in:
Daniel Hougaard
2024-06-24 19:11:58 +02:00
parent 7ab5c02000
commit 1aaca12781
@@ -19,9 +19,13 @@ export const superAdminDALFactory = (db: TDbClient) => {
) )
.first(); .first();
if (!config) {
return null;
}
return { return {
defaultAuthOrgSlug: config?.defaultAuthOrgSlug || null, ...config,
...config defaultAuthOrgSlug: config?.defaultAuthOrgSlug || null
} as TSuperAdmin & { defaultAuthOrgSlug: string | null }; } as TSuperAdmin & { defaultAuthOrgSlug: string | null };
}; };