1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix total video file size

This commit is contained in:
Chocobozzz 2024-04-22 11:48:05 +02:00
parent da949376db
commit bce0f2f11b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 23 additions and 18 deletions

View file

@ -68,12 +68,8 @@ async function deleteVideoLatestSourceFile (req: express.Request, res: express.R
await video.removeOriginalFile(videoSource)
videoSource.keptOriginalFilename = null
videoSource.fps = null
videoSource.resolution = null
videoSource.width = null
videoSource.height = null
videoSource.metadata = null
videoSource.size = null
videoSource.storage = null
await videoSource.save()
return res.sendStatus(HttpStatusCode.NO_CONTENT_204)