diff --git a/backend/app.js b/backend/app.js index 6f1b148..5fab23c 100644 --- a/backend/app.js +++ b/backend/app.js @@ -2619,7 +2619,7 @@ app.post('/api/deleteFile', optionalJwt, async (req, res) => { db.get('files').remove({uid: uid}).write(); wasDeleted = true; res.send(wasDeleted); - } else if (video_obj) { + } else if (file_obj) { db.get('files').remove({uid: uid}).write(); wasDeleted = true; res.send(wasDeleted);