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