diff --git a/CHANGELOG.md b/CHANGELOG.md index 496fcff2..69ef7e9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [5.0.1] - 2023-10-12 + +- Fixes user info from primary user id query + ## [5.0.0] - 2023-09-19 ### Changes diff --git a/build.gradle b/build.gradle index a3e8c53f..736fe41b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "5.0.0" +version = "5.0.1" repositories { mavenCentral() diff --git a/src/main/java/io/supertokens/storage/postgresql/queries/GeneralQueries.java b/src/main/java/io/supertokens/storage/postgresql/queries/GeneralQueries.java index 81583518..976c3337 100644 --- a/src/main/java/io/supertokens/storage/postgresql/queries/GeneralQueries.java +++ b/src/main/java/io/supertokens/storage/postgresql/queries/GeneralQueries.java @@ -1368,7 +1368,7 @@ private static List getPrimaryUserInfoForUserIds(Start start " WHERE au.primary_or_recipe_user_id IN (SELECT primary_or_recipe_user_id FROM " + getConfig(start).getAppIdToUserIdTable() + " WHERE (user_id IN (" + Utils.generateCommaSeperatedQuestionMarks(userIds.size()) + - ") OR au.primary_or_recipe_user_id IN (" + + ") OR primary_or_recipe_user_id IN (" + Utils.generateCommaSeperatedQuestionMarks(userIds.size()) + ")) AND app_id = ?) AND au.app_id = ?"; @@ -1460,7 +1460,7 @@ private static List getPrimaryUserInfoForUserIds_Transaction " WHERE au.primary_or_recipe_user_id IN (SELECT primary_or_recipe_user_id FROM " + getConfig(start).getAppIdToUserIdTable() + " WHERE (user_id IN (" + Utils.generateCommaSeperatedQuestionMarks(userIds.size()) + - ") OR au.primary_or_recipe_user_id IN (" + + ") OR primary_or_recipe_user_id IN (" + Utils.generateCommaSeperatedQuestionMarks(userIds.size()) + ")) AND app_id = ?) AND au.app_id = ?";