Fix total video file size

This commit is contained in:
Chocobozzz
2024-04-22 11:48:05 +02:00
parent da949376db
commit bce0f2f11b
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)