changed to unlinkSync
This commit is contained in:
parent
ab86ecf90e
commit
aad54b34b9
1 changed files with 1 additions and 1 deletions
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) {
|
||||
if (!err) {
|
||||
client.del(id);
|
||||
fs.unlink(__dirname + '/static/' + id);
|
||||
fs.unlinkSync(__dirname + '/static/' + id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue