mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-20 19:50:58 +03:00
Fixed bug where deleting a file card wasn't possible if it was already deleted manually
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user