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-video-event.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-video-event.ts')
-rw-r--r-- | server/models/request/request-video-event.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/request/request-video-event.ts b/server/models/request/request-video-event.ts index d7dce9bc8..8954407e1 100644 --- a/server/models/request/request-video-event.ts +++ b/server/models/request/request-video-event.ts | |||
@@ -111,7 +111,7 @@ listWithLimitAndRandom = function (limitPods: number, limitRequestsPerPod: numbe | |||
111 | model: RequestVideoEvent['sequelize'].models.Pod, | 111 | model: RequestVideoEvent['sequelize'].models.Pod, |
112 | where: { | 112 | where: { |
113 | id: { | 113 | id: { |
114 | $in: podIds | 114 | [Sequelize.Op.in]: podIds |
115 | } | 115 | } |
116 | } | 116 | } |
117 | } | 117 | } |
@@ -135,7 +135,7 @@ removeByRequestIdsAndPod = function (ids: number[], podId: number) { | |||
135 | const query = { | 135 | const query = { |
136 | where: { | 136 | where: { |
137 | id: { | 137 | id: { |
138 | $in: ids | 138 | [Sequelize.Op.in]: ids |
139 | } | 139 | } |
140 | }, | 140 | }, |
141 | include: [ | 141 | include: [ |