From fb5c812db6aeb60d70bee5f33796e7ef9391f805 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Fri, 29 Mar 2024 15:27:02 +0530 Subject: [PATCH] fix: backport to core 6.0 --- .../supertokens/storage/mysql/queries/UserIdMappingQueries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/supertokens/storage/mysql/queries/UserIdMappingQueries.java b/src/main/java/io/supertokens/storage/mysql/queries/UserIdMappingQueries.java index 2b43f45..bc06f38 100644 --- a/src/main/java/io/supertokens/storage/mysql/queries/UserIdMappingQueries.java +++ b/src/main/java/io/supertokens/storage/mysql/queries/UserIdMappingQueries.java @@ -125,7 +125,7 @@ public static HashMap getUserIdMappingWithUserIds(Start start, A // No need to filter based on tenantId because the id list is already filtered for a tenant StringBuilder QUERY = new StringBuilder( - "SELECT * FROM " + Config.getConfig(start).getUserIdMappingTable() + " WHERE supertokens_user_id IN ("); + "SELECT * FROM " + Config.getConfig(start).getUserIdMappingTable() + " WHERE app_id = ? AND supertokens_user_id IN ("); for (int i = 0; i < userIds.size(); i++) { QUERY.append("?"); if (i != userIds.size() - 1) {