You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/libs/data-access-layer/src/old/apps/data_sink_worker/repo/requestedForErasureMemberIdentities.repo.ts
+11-23Lines changed: 11 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -73,30 +73,22 @@ export default class RequestedForErasureMemberIdentitiesRepository extends Repos
73
73
}
74
74
75
75
if(identity.type===MemberIdentityType.EMAIL){
76
-
// SQL matches case-insensitively (lower(value) = lower(?)), so mirror that here.
77
-
// Using find instead of singleOrDefault: case-insensitive matching could produce
78
-
// multiple hits if the DB has rows with differing casing for the same email,
79
-
// causing singleOrDefault to throw.
76
+
// Email is platform-agnostic: the SQL query also omits the platform filter for EMAIL.
77
+
// Using find (not singleOrDefault) because case-insensitive matching can return
78
+
// multiple rows for the same email stored with different casing.
0 commit comments