HSB-431 fix: email case sensitive in email provider (#4042)

* feat: code level email insensitivity added

* test: fix broken test case

* chore: updated testcase for findUserByEmail in user module

---------

Co-authored-by: Balu Babu <balub997@gmail.com>
This commit is contained in:
Mir Arif Hasan
2024-05-15 13:07:35 +06:00
committed by GitHub
parent f8ac6dfeb1
commit b7a3ae231b
6 changed files with 34 additions and 20 deletions

View File

@@ -299,7 +299,10 @@ export class ShortcodeService implements UserDataHandler, OnModuleInit {
where: userEmail
? {
User: {
email: userEmail,
email: {
equals: userEmail,
mode: 'insensitive',
},
},
}
: undefined,