aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-12 16:35:04 +0200
committerChocobozzz <me@florianbigard.com>2021-04-12 16:35:04 +0200
commit5182473faf8fdbede2f4654d9113b7e7daa68dbe (patch)
treef5a78e8a7342b4d434f5db42ce921a8dd92bee11 /server/middlewares
parent83ff548125b01eafcbd37d7d005ecf4355697491 (diff)
downloadPeerTube-5182473faf8fdbede2f4654d9113b7e7daa68dbe.tar.gz
PeerTube-5182473faf8fdbede2f4654d9113b7e7daa68dbe.tar.zst
PeerTube-5182473faf8fdbede2f4654d9113b7e7daa68dbe.zip
Upgrade server dep'
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/async.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/async.ts b/server/middlewares/async.ts
index 3a1bdabb8..3d6e38809 100644
--- a/server/middlewares/async.ts
+++ b/server/middlewares/async.ts
@@ -13,7 +13,7 @@ function asyncMiddleware (fun: RequestPromiseHandler | RequestPromiseHandler[])
13 return (req: Request, res: Response, next: NextFunction) => { 13 return (req: Request, res: Response, next: NextFunction) => {
14 if (Array.isArray(fun) === true) { 14 if (Array.isArray(fun) === true) {
15 return eachSeries(fun as RequestHandler[], (f, cb) => { 15 return eachSeries(fun as RequestHandler[], (f, cb) => {
16 Promise.resolve(f(req, res, cb)) 16 Promise.resolve(f(req, res, err => cb(err)))
17 .catch(err => next(err)) 17 .catch(err => next(err))
18 }, next) 18 }, next)
19 } 19 }