aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/v1/pods.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js
index 982a1e364..360575a0d 100644
--- a/server/controllers/api/v1/pods.js
+++ b/server/controllers/api/v1/pods.js
@@ -86,10 +86,15 @@ function makeFriends (req, res, next) {
86 const urls = req.body.urls 86 const urls = req.body.urls
87 87
88 friends.makeFriends(urls, function (err) { 88 friends.makeFriends(urls, function (err) {
89 if (err) return next(err) 89 if (err) {
90 logger.error('Could not make friends.', { error: err })
91 return
92 }
90 93
91 res.type('json').status(204).end() 94 logger.info('Made friends!')
92 }) 95 })
96
97 res.type('json').status(204).end()
93} 98}
94 99
95function removePods (req, res, next) { 100function removePods (req, res, next) {