mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Do not wait the make friends process ends to send a response to the
request
This commit is contained in:
parent
6be622478a
commit
9ab1071c8d
2 changed files with 9 additions and 3 deletions
|
@ -86,10 +86,15 @@ function makeFriends (req, res, next) {
|
|||
const urls = req.body.urls
|
||||
|
||||
friends.makeFriends(urls, function (err) {
|
||||
if (err) return next(err)
|
||||
if (err) {
|
||||
logger.error('Could not make friends.', { error: err })
|
||||
return
|
||||
}
|
||||
|
||||
res.type('json').status(204).end()
|
||||
logger.info('Made friends!')
|
||||
})
|
||||
|
||||
res.type('json').status(204).end()
|
||||
}
|
||||
|
||||
function removePods (req, res, next) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue