fix build

This commit is contained in:
Max Peintner
2025-01-30 11:48:17 +01:00
parent 4613f82411
commit 79dcef3785

View File

@@ -133,9 +133,11 @@ export async function sendPassword(command: UpdateSessionCommand) {
); );
} catch (error: any) { } catch (error: any) {
if ("failedAttempts" in error && error.failedAttempts) { if ("failedAttempts" in error && error.failedAttempts) {
const lockoutSettings = await getLockoutSettings( const lockoutSettings = await getLockoutSettings({
command.organization, serviceUrl,
); serviceRegion,
orgId: command.organization,
});
return { return {
error: error:
@@ -163,7 +165,11 @@ export async function sendPassword(command: UpdateSessionCommand) {
); );
} catch (error: any) { } catch (error: any) {
if ("failedAttempts" in error && error.failedAttempts) { if ("failedAttempts" in error && error.failedAttempts) {
const lockoutSettings = await getLockoutSettings(command.organization); const lockoutSettings = await getLockoutSettings({
serviceUrl,
serviceRegion,
orgId: command.organization,
});
return { return {
error: error: