mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Case insensitive
This commit is contained in:
parent
461b348dc0
commit
ee2487ff01
1 changed files with 1 additions and 1 deletions
|
|
@ -118,6 +118,6 @@ export const getUserByEmail = async (email: string): Promise<User | null> => {
|
|||
return getRepository(User)
|
||||
.createQueryBuilder('user')
|
||||
.leftJoinAndSelect('user.profile', 'profile')
|
||||
.where('LOWER(email) = LOWER(:email)', { email })
|
||||
.where('LOWER(email) = LOWER(:email)', { email }) // case insensitive
|
||||
.getOne()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue