changed to unlinkSync
This commit is contained in:
parent
ab86ecf90e
commit
aad54b34b9
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user