mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Split models
This commit is contained in:
parent
c45f7f8400
commit
c173e56520
15 changed files with 638 additions and 517 deletions
|
@ -42,7 +42,10 @@
|
|||
}
|
||||
|
||||
function removeRemoteVideo (req, res, next) {
|
||||
videos.removeRemotes(req.body.signature.url, pluck(req.body.data, 'magnetUri'), function (err) {
|
||||
var url = req.body.signature.url
|
||||
var magnetUris = pluck(req.body.data, 'magnetUri')
|
||||
|
||||
videos.removeRemotesOfByMagnetUris(url, magnetUris, function (err) {
|
||||
if (err) return next(err)
|
||||
|
||||
res.sendStatus(204)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue