Skip to content

Commit 573bedc

Browse files
committed
fix: mt query serializable
1 parent 8af3332 commit 573bedc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/supertokens/storage/postgresql/queries/MultitenancyQueries.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import io.supertokens.pluginInterface.multitenancy.TenantIdentifier;
2323
import io.supertokens.pluginInterface.multitenancy.ThirdPartyConfig;
2424
import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException;
25+
import io.supertokens.pluginInterface.sqlStorage.SQLStorage;
2526
import io.supertokens.storage.postgresql.Start;
2627
import io.supertokens.storage.postgresql.config.Config;
2728
import io.supertokens.storage.postgresql.queries.multitenancy.MfaSqlHelper;
@@ -269,7 +270,7 @@ public static void overwriteTenantConfig(Start start, TenantConfig tenantConfig)
269270
}
270271

271272
return null;
272-
});
273+
}, SQLStorage.TransactionIsolationLevel.SERIALIZABLE);
273274
}
274275

275276
public static TenantConfig[] getAllTenants(Start start) throws StorageQueryException {

0 commit comments

Comments
 (0)