diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-17 10:55:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-17 11:42:50 +0200 |
commit | faa9d434b4d681837ff2a87603337c2623419669 (patch) | |
tree | 1f3c798dd6fd5f2dcbb019978f063f448c019974 /server/middlewares/validators/videos | |
parent | 982f2fc9b42537ca40ff29bf62c1ca3692d4b587 (diff) | |
download | PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.gz PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.zst PeerTube-faa9d434b4d681837ff2a87603337c2623419669.zip |
Update server dependencies
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r-- | server/middlewares/validators/videos/video-imports.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-imports.ts b/server/middlewares/validators/videos/video-imports.ts index e3d900a9e..d69aff118 100644 --- a/server/middlewares/validators/videos/video-imports.ts +++ b/server/middlewares/validators/videos/video-imports.ts | |||
@@ -38,7 +38,7 @@ const videoImportAddValidator = getCommonVideoEditAttributes().concat([ | |||
38 | logger.debug('Checking videoImportAddValidator parameters', { parameters: req.body }) | 38 | logger.debug('Checking videoImportAddValidator parameters', { parameters: req.body }) |
39 | 39 | ||
40 | const user = res.locals.oauth.token.User | 40 | const user = res.locals.oauth.token.User |
41 | const torrentFile = req.files && req.files['torrentfile'] ? req.files['torrentfile'][0] : undefined | 41 | const torrentFile = req.files?.['torrentfile'] ? req.files['torrentfile'][0] : undefined |
42 | 42 | ||
43 | if (areValidationErrors(req, res)) return cleanUpReqFiles(req) | 43 | if (areValidationErrors(req, res)) return cleanUpReqFiles(req) |
44 | 44 | ||