diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 11:17:11 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 11:17:11 +0100 |
commit | 98ac898a03ed7bbb4edec74fe823b3f2d6d4904a (patch) | |
tree | d96e2b5fe8db9b4f1f1628067910495ec5679e3e /server/controllers/api/pods.js | |
parent | 4712081f2a5f48749cf125d729e78b926ab28d6d (diff) | |
download | PeerTube-98ac898a03ed7bbb4edec74fe823b3f2d6d4904a.tar.gz PeerTube-98ac898a03ed7bbb4edec74fe823b3f2d6d4904a.tar.zst PeerTube-98ac898a03ed7bbb4edec74fe823b3f2d6d4904a.zip |
Server: use video hook to send information to other pods when a video is
deleted
Diffstat (limited to 'server/controllers/api/pods.js')
-rw-r--r-- | server/controllers/api/pods.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/pods.js b/server/controllers/api/pods.js index 79f3f9d8d..d9279f1d9 100644 --- a/server/controllers/api/pods.js +++ b/server/controllers/api/pods.js | |||
@@ -113,7 +113,7 @@ function removePods (req, res, next) { | |||
113 | db.Pod.loadByHost(host, callback) | 113 | db.Pod.loadByHost(host, callback) |
114 | }, | 114 | }, |
115 | 115 | ||
116 | function removePod (pod, callback) { | 116 | function deletePod (pod, callback) { |
117 | pod.destroy().asCallback(callback) | 117 | pod.destroy().asCallback(callback) |
118 | } | 118 | } |
119 | ], function (err) { | 119 | ], function (err) { |