From aad54b34b907428da307dda70bfa74366089f027 Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Wed, 31 May 2017 10:11:00 -0700 Subject: [PATCH] changed to unlinkSync --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index c2140a08..43cad4bf 100644 --- a/app.js +++ b/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); } }); }