Fixed bug where deleting a file card wasn't possible if it was already deleted manually

pull/316/head
Isaac Abadi 5 years ago
parent a78f4e99d0
commit 133d848729

@ -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);

Loading…
Cancel
Save