undefined context as instance

This commit is contained in:
peintnermax
2024-07-30 14:37:11 +02:00
parent d996f5b4e5
commit 54cc5853db
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ export async function GET(request: NextRequest) {
idpId = matched?.[1] ?? "";
const identityProviders = await getActiveIdentityProviders(
organization,
organization ? organization : undefined,
).then((resp) => {
return resp.identityProviders;
});

View File

@@ -436,7 +436,7 @@ export async function verifyU2FRegistration(
return userService.verifyU2FRegistration(request, {});
}
export async function getActiveIdentityProviders(orgId: string) {
export async function getActiveIdentityProviders(orgId?: string) {
return settingsService.getActiveIdentityProviders(
{ ctx: makeReqCtx(orgId) },
{},