mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update super-admin-dal.ts
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user