diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 16:28:35 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 8e10cf1a5a438a00e5f7e0691cb830769867cffc (patch) | |
tree | 23c0aeb43d7fb05b2d280c37b4334c2f320b647e /server/controllers/api | |
parent | 8e13fa7d09e9925b4559cbba6c5d72c5ff1bd391 (diff) | |
download | PeerTube-8e10cf1a5a438a00e5f7e0691cb830769867cffc.tar.gz PeerTube-8e10cf1a5a438a00e5f7e0691cb830769867cffc.tar.zst PeerTube-8e10cf1a5a438a00e5f7e0691cb830769867cffc.zip |
Fix video upload and videos list
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/server/follows.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index c9775ad21..ac8ea87f9 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -108,7 +108,11 @@ async function follow (req: express.Request, res: express.Response, next: expres | |||
108 | tasks.push(p) | 108 | tasks.push(p) |
109 | } | 109 | } |
110 | 110 | ||
111 | await Promise.all(tasks) | 111 | // Don't make the client wait the tasks |
112 | Promise.all(tasks) | ||
113 | .catch(err => { | ||
114 | logger.error('Error in follow.', err) | ||
115 | }) | ||
112 | 116 | ||
113 | return res.status(204).end() | 117 | return res.status(204).end() |
114 | } | 118 | } |