diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-09 13:44:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-09 13:51:24 +0100 |
commit | c9f27d9881ea0cc05e953117380b4b22a1376d21 (patch) | |
tree | ca6a5d1f6dfd0fd635c981b90b65d4ecef1fc7e6 /server/models/user/user.ts | |
parent | 8f0b94f0ed4bd30413d5d3a7fb077a9105a95413 (diff) | |
download | PeerTube-c9f27d9881ea0cc05e953117380b4b22a1376d21.tar.gz PeerTube-c9f27d9881ea0cc05e953117380b4b22a1376d21.tar.zst PeerTube-c9f27d9881ea0cc05e953117380b4b22a1376d21.zip |
Update server dependencies
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 4ad76e5bc..e7bf22806 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -623,7 +623,7 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
623 | const query = { | 623 | const query = { |
624 | where: { | 624 | where: { |
625 | [Op.or]: [ | 625 | [Op.or]: [ |
626 | where(fn('lower', col('username')), fn('lower', username)), | 626 | where(fn('lower', col('username')), '=', fn('lower', username)), |
627 | 627 | ||
628 | { email } | 628 | { email } |
629 | ] | 629 | ] |