Skip to content

Commit

Permalink
Update super-admin-dal.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jun 21, 2024
1 parent 72a16b7 commit 2ba5fac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/services/super-admin/super-admin-dal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

Expand Down

0 comments on commit 2ba5fac

Please sign in to comment.