diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-04 21:15:57 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-04 21:15:57 +0100 |
commit | b981a525c37d226b3fa59287a6ce338f54583d0c (patch) | |
tree | 5e97fd8a07b8f8018d87572523a1843c27ab991d | |
parent | 55fa55a9be566cca2ba95322f2ae23b434aed62a (diff) | |
download | PeerTube-b981a525c37d226b3fa59287a6ce338f54583d0c.tar.gz PeerTube-b981a525c37d226b3fa59287a6ce338f54583d0c.tar.zst PeerTube-b981a525c37d226b3fa59287a6ce338f54583d0c.zip |
Server: we don't need the video name when removing a remote video
-rw-r--r-- | server/helpers/custom-validators/remote/videos.js | 1 | ||||
-rw-r--r-- | server/models/video.js | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/remote/videos.js b/server/helpers/custom-validators/remote/videos.js index c3ca00e1c..7c27b9dbb 100644 --- a/server/helpers/custom-validators/remote/videos.js +++ b/server/helpers/custom-validators/remote/videos.js | |||
@@ -39,7 +39,6 @@ function isEachRemoteRequestVideosValid (requests) { | |||
39 | ) || | 39 | ) || |
40 | ( | 40 | ( |
41 | isRequestTypeRemoveValid(request.type) && | 41 | isRequestTypeRemoveValid(request.type) && |
42 | videosValidators.isVideoNameValid(video.name) && | ||
43 | videosValidators.isVideoRemoteIdValid(video.remoteId) | 42 | videosValidators.isVideoRemoteIdValid(video.remoteId) |
44 | ) || | 43 | ) || |
45 | ( | 44 | ( |
diff --git a/server/models/video.js b/server/models/video.js index 4c197a835..b3060705d 100644 --- a/server/models/video.js +++ b/server/models/video.js | |||
@@ -218,7 +218,6 @@ function afterDestroy (video, options, next) { | |||
218 | 218 | ||
219 | function (callback) { | 219 | function (callback) { |
220 | const params = { | 220 | const params = { |
221 | name: video.name, | ||
222 | remoteId: video.id | 221 | remoteId: video.id |
223 | } | 222 | } |
224 | 223 | ||