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/controllers/api/videos/index.ts | |
parent | 982f2fc9b42537ca40ff29bf62c1ca3692d4b587 (diff) | |
download | PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.gz PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.zst PeerTube-faa9d434b4d681837ff2a87603337c2623419669.zip |
Update server dependencies
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 8048c568c..3ca5a9192 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -317,11 +317,11 @@ async function updateVideo (req: express.Request, res: express.Response) { | |||
317 | const hadPrivacyForFederation = videoInstance.hasPrivacyForFederation() | 317 | const hadPrivacyForFederation = videoInstance.hasPrivacyForFederation() |
318 | 318 | ||
319 | // Process thumbnail or create it from the video | 319 | // Process thumbnail or create it from the video |
320 | const thumbnailModel = req.files && req.files['thumbnailfile'] | 320 | const thumbnailModel = req.files?.['thumbnailfile'] |
321 | ? await createVideoMiniatureFromExisting(req.files['thumbnailfile'][0].path, videoInstance, ThumbnailType.MINIATURE, false) | 321 | ? await createVideoMiniatureFromExisting(req.files['thumbnailfile'][0].path, videoInstance, ThumbnailType.MINIATURE, false) |
322 | : undefined | 322 | : undefined |
323 | 323 | ||
324 | const previewModel = req.files && req.files['previewfile'] | 324 | const previewModel = req.files?.['previewfile'] |
325 | ? await createVideoMiniatureFromExisting(req.files['previewfile'][0].path, videoInstance, ThumbnailType.PREVIEW, false) | 325 | ? await createVideoMiniatureFromExisting(req.files['previewfile'][0].path, videoInstance, ThumbnailType.PREVIEW, false) |
326 | : undefined | 326 | : undefined |
327 | 327 | ||