From b981a525c37d226b3fa59287a6ce338f54583d0c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 4 Jan 2017 21:15:57 +0100 Subject: [PATCH] Server: we don't need the video name when removing a remote video --- server/helpers/custom-validators/remote/videos.js | 1 - server/models/video.js | 1 - 2 files changed, 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) { ) || ( isRequestTypeRemoveValid(request.type) && - videosValidators.isVideoNameValid(video.name) && videosValidators.isVideoRemoteIdValid(video.remoteId) ) || ( 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) { function (callback) { const params = { - name: video.name, remoteId: video.id } -- 2.25.1