diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 16:59:02 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 16:59:02 +0200 |
commit | c2962505115563ad1510e8116f3b362887cac71f (patch) | |
tree | 530d930e48f45aad27b429621542a6bca1dc1b60 /server/models/request/request.ts | |
parent | a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9 (diff) | |
download | PeerTube-c2962505115563ad1510e8116f3b362887cac71f.tar.gz PeerTube-c2962505115563ad1510e8116f3b362887cac71f.tar.zst PeerTube-c2962505115563ad1510e8116f3b362887cac71f.zip |
Remove sequelize deprecated operators
Diffstat (limited to 'server/models/request/request.ts')
-rw-r--r-- | server/models/request/request.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/request/request.ts b/server/models/request/request.ts index b4c0226fa..71118a947 100644 --- a/server/models/request/request.ts +++ b/server/models/request/request.ts | |||
@@ -88,7 +88,7 @@ listWithLimitAndRandom = function (limitPods: number, limitRequestsPerPod: numbe | |||
88 | model: Request['sequelize'].models.Pod, | 88 | model: Request['sequelize'].models.Pod, |
89 | where: { | 89 | where: { |
90 | id: { | 90 | id: { |
91 | $in: podIds | 91 | [Sequelize.Op.in]: podIds |
92 | } | 92 | } |
93 | } | 93 | } |
94 | } | 94 | } |
@@ -112,7 +112,7 @@ removeWithEmptyTo = function () { | |||
112 | const query = { | 112 | const query = { |
113 | where: { | 113 | where: { |
114 | id: { | 114 | id: { |
115 | $notIn: [ | 115 | [Sequelize.Op.notIn]: [ |
116 | Sequelize.literal('SELECT "requestId" FROM "RequestToPods"') | 116 | Sequelize.literal('SELECT "requestId" FROM "RequestToPods"') |
117 | ] | 117 | ] |
118 | } | 118 | } |