aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-21 11:20:45 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-21 11:20:45 +0200
commit80a6c9e76fda57f01e37fe4620771ae70738a211 (patch)
tree7381a94285c11d954efca2be8103c8b86df3e832 /server/models/video.js
parent792b893ed414301c060391ed8a00368d68688236 (diff)
downloadPeerTube-80a6c9e76fda57f01e37fe4620771ae70738a211.tar.gz
PeerTube-80a6c9e76fda57f01e37fe4620771ae70738a211.tar.zst
PeerTube-80a6c9e76fda57f01e37fe4620771ae70738a211.zip
Server: pod removing refractoring
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video.js b/server/models/video.js
index 4b941a40c..1feefe24f 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -57,7 +57,7 @@ VideoSchema.statics = {
57 getDurationFromFile, 57 getDurationFromFile,
58 listForApi, 58 listForApi,
59 listByUrlAndMagnet, 59 listByUrlAndMagnet,
60 listByUrls, 60 listByUrl,
61 listOwned, 61 listOwned,
62 listOwnedByAuthor, 62 listOwnedByAuthor,
63 listRemotes, 63 listRemotes,
@@ -218,8 +218,8 @@ function listByUrlAndMagnet (fromUrl, magnetUri, callback) {
218 this.find({ podUrl: fromUrl, magnetUri: magnetUri }, callback) 218 this.find({ podUrl: fromUrl, magnetUri: magnetUri }, callback)
219} 219}
220 220
221function listByUrls (fromUrls, callback) { 221function listByUrl (fromUrl, callback) {
222 this.find({ podUrl: { $in: fromUrls } }, callback) 222 this.find({ podUrl: fromUrl }, callback)
223} 223}
224 224
225function listOwned (callback) { 225function listOwned (callback) {