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-qadu.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-qadu.ts')
-rw-r--r-- | server/models/request/request-video-qadu.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/request/request-video-qadu.ts b/server/models/request/request-video-qadu.ts index 9c97812b9..93cf249b3 100644 --- a/server/models/request/request-video-qadu.ts +++ b/server/models/request/request-video-qadu.ts | |||
@@ -101,7 +101,7 @@ listWithLimitAndRandom = function (limitPods: number, limitRequestsPerPod: numbe | |||
101 | model: RequestVideoQadu['sequelize'].models.Pod, | 101 | model: RequestVideoQadu['sequelize'].models.Pod, |
102 | where: { | 102 | where: { |
103 | id: { | 103 | id: { |
104 | $in: podIds | 104 | [Sequelize.Op.in]: podIds |
105 | } | 105 | } |
106 | } | 106 | } |
107 | }, | 107 | }, |
@@ -122,7 +122,7 @@ removeByRequestIdsAndPod = function (ids: number[], podId: number) { | |||
122 | const query = { | 122 | const query = { |
123 | where: { | 123 | where: { |
124 | id: { | 124 | id: { |
125 | $in: ids | 125 | [Sequelize.Op.in]: ids |
126 | }, | 126 | }, |
127 | podId | 127 | podId |
128 | } | 128 | } |