File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
src/main/java/io/supertokens/inmemorydb/queries Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) , and this project adheres
6
6
to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 7.0.4] - 2023-10-12
9
+
10
+ - Fixes user info from primary user id query
11
+ - Fixes ` deviceIdHash ` issue
12
+
8
13
## [ 7.0.3] - 2023-10-11
9
14
10
15
- Fixes issue with duplicate cron task
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" }
19
19
// }
20
20
// }
21
21
22
- version = " 7.0.3 "
22
+ version = " 7.0.4 "
23
23
24
24
25
25
repositories {
Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ private static List<AuthRecipeUserInfo> getPrimaryUserInfoForUserIds(Start start
1181
1181
" WHERE au.primary_or_recipe_user_id IN (SELECT primary_or_recipe_user_id FROM " +
1182
1182
getConfig (start ).getAppIdToUserIdTable () + " WHERE (user_id IN ("
1183
1183
+ Utils .generateCommaSeperatedQuestionMarks (userIds .size ()) +
1184
- ") OR au. primary_or_recipe_user_id IN (" +
1184
+ ") OR primary_or_recipe_user_id IN (" +
1185
1185
Utils .generateCommaSeperatedQuestionMarks (userIds .size ()) +
1186
1186
")) AND app_id = ?) AND au.app_id = ?" ;
1187
1187
@@ -1273,7 +1273,7 @@ private static List<AuthRecipeUserInfo> getPrimaryUserInfoForUserIds_Transaction
1273
1273
" WHERE au.primary_or_recipe_user_id IN (SELECT primary_or_recipe_user_id FROM " +
1274
1274
getConfig (start ).getAppIdToUserIdTable () + " WHERE (user_id IN ("
1275
1275
+ Utils .generateCommaSeperatedQuestionMarks (userIds .size ()) +
1276
- ") OR au. primary_or_recipe_user_id IN (" +
1276
+ ") OR primary_or_recipe_user_id IN (" +
1277
1277
Utils .generateCommaSeperatedQuestionMarks (userIds .size ()) +
1278
1278
")) AND app_id = ?) AND au.app_id = ?" ;
1279
1279
Original file line number Diff line number Diff line change @@ -1093,7 +1093,7 @@ private static PasswordlessDeviceRowMapper getInstance() {
1093
1093
1094
1094
@ Override
1095
1095
public PasswordlessDevice map (ResultSet result ) throws Exception {
1096
- return new PasswordlessDevice (result .getString ("device_id_hash" ), result .getString ("email" ),
1096
+ return new PasswordlessDevice (result .getString ("device_id_hash" ). trim () , result .getString ("email" ),
1097
1097
result .getString ("phone_number" ), result .getString ("link_code_salt" ),
1098
1098
result .getInt ("failed_attempts" ));
1099
1099
}
@@ -1111,7 +1111,7 @@ private static PasswordlessCodeRowMapper getInstance() {
1111
1111
1112
1112
@ Override
1113
1113
public PasswordlessCode map (ResultSet result ) throws Exception {
1114
- return new PasswordlessCode (result .getString ("code_id" ), result .getString ("device_id_hash" ),
1114
+ return new PasswordlessCode (result .getString ("code_id" ), result .getString ("device_id_hash" ). trim () ,
1115
1115
result .getString ("link_code_hash" ), result .getLong ("created_at" ));
1116
1116
}
1117
1117
}
You can’t perform that action at this time.
0 commit comments