diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-19 10:43:54 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-19 10:43:54 +0200 |
commit | bda65bdc9f3ce7d4b6e97cb9afaca25b71added3 (patch) | |
tree | 812d3035b3aa97862a050e92301840e4f2545ae2 /server/controllers/api | |
parent | 10db166bbe510af27cb20cc0f028537af0df9c41 (diff) | |
download | PeerTube-bda65bdc9f3ce7d4b6e97cb9afaca25b71added3.tar.gz PeerTube-bda65bdc9f3ce7d4b6e97cb9afaca25b71added3.tar.zst PeerTube-bda65bdc9f3ce7d4b6e97cb9afaca25b71added3.zip |
Fix pod removal when it is down
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/pods.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/pods.ts b/server/controllers/api/pods.ts index ec94efc35..804aa0659 100644 --- a/server/controllers/api/pods.ts +++ b/server/controllers/api/pods.ts | |||
@@ -83,6 +83,6 @@ function removeFriendController (req: express.Request, res: express.Response, ne | |||
83 | const pod = res.locals.pod as PodInstance | 83 | const pod = res.locals.pod as PodInstance |
84 | 84 | ||
85 | removeFriend(pod) | 85 | removeFriend(pod) |
86 | .then(() => (res.type('json').status(204).end())) | 86 | .then(() => res.type('json').status(204).end()) |
87 | .catch(err => next(err)) | 87 | .catch(err => next(err)) |
88 | } | 88 | } |