diff options
Diffstat (limited to 'server/models/user')
-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 f8598c40f..074c9c121 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -271,7 +271,7 @@ loadByUsernameOrEmail = function (username: string, email: string) { | |||
271 | const query = { | 271 | const query = { |
272 | include: [ { model: User['sequelize'].models.Author, required: true } ], | 272 | include: [ { model: User['sequelize'].models.Author, required: true } ], |
273 | where: { | 273 | where: { |
274 | $or: [ { username }, { email } ] | 274 | [Sequelize.Op.or]: [ { username }, { email } ] |
275 | } | 275 | } |
276 | } | 276 | } |
277 | 277 | ||