From e4bc70e9c45488ec531cb2e8ab7bc982976a1ca6 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Fri, 20 Oct 2023 13:05:44 +0530 Subject: [PATCH] fix: tests --- .../postgresql/queries/multitenancy/TenantConfigSQLHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/supertokens/storage/postgresql/queries/multitenancy/TenantConfigSQLHelper.java b/src/main/java/io/supertokens/storage/postgresql/queries/multitenancy/TenantConfigSQLHelper.java index 5b81b24f..7a134e79 100644 --- a/src/main/java/io/supertokens/storage/postgresql/queries/multitenancy/TenantConfigSQLHelper.java +++ b/src/main/java/io/supertokens/storage/postgresql/queries/multitenancy/TenantConfigSQLHelper.java @@ -126,7 +126,7 @@ public static void create(Start start, Connection sqlCon, TenantConfig tenantCon pst.setBoolean(6, tenantConfig.passwordlessConfig.enabled); pst.setBoolean(7, tenantConfig.thirdPartyConfig.enabled); pst.setBoolean(8, tenantConfig.totpConfig.enabled); - pst.setString(9, new GsonBuilder().serializeNulls().create().toJson(tenantConfig.mfaConfig.defaultRequiredFactorIds)); + pst.setString(9, new GsonBuilder().serializeNulls().create().toJson(tenantConfig.mfaConfig.firstFactors)); pst.setString(10, new GsonBuilder().serializeNulls().create().toJson(tenantConfig.mfaConfig.defaultRequiredFactorIds)); }); }