mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 14:40:55 +03:00
changed to unlinkSync
This commit is contained in:
2
app.js
2
app.js
@@ -34,7 +34,7 @@ app.get('/assets/download/:id', function(req, res) {
|
|||||||
res.download(__dirname + '/static/' + id, reply, function(err) {
|
res.download(__dirname + '/static/' + id, reply, function(err) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
client.del(id);
|
client.del(id);
|
||||||
fs.unlink(__dirname + '/static/' + id);
|
fs.unlinkSync(__dirname + '/static/' + id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user