aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user/user.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-26 16:59:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 16:59:02 +0200
commitc2962505115563ad1510e8116f3b362887cac71f (patch)
tree530d930e48f45aad27b429621542a6bca1dc1b60 /server/models/user/user.ts
parenta265f7f30fe5f25e742c99c6d43e79dfd46bf2a9 (diff)
downloadPeerTube-c2962505115563ad1510e8116f3b362887cac71f.tar.gz
PeerTube-c2962505115563ad1510e8116f3b362887cac71f.tar.zst
PeerTube-c2962505115563ad1510e8116f3b362887cac71f.zip
Remove sequelize deprecated operators
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r--server/models/user/user.ts2
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