diff options
| author | Jules <jules@asdf.us> | 2018-03-17 13:55:16 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2018-03-17 13:55:16 -0400 |
| commit | 5eb7632633668006a54706c350f5c19ae0904233 (patch) | |
| tree | 960d32b58ca57eeb520ccfb3bba264eb82f18e34 | |
| parent | d028f00e8d47139895b987fc071fc0133d204959 (diff) | |
destroyfile or something
| -rw-r--r-- | bucky/app/bucky.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 2a362b5..81b71a4 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -521,7 +521,7 @@ var bucky = module.exports = { res.sendStatus(500) }) }, - destroyFile: function(req,res,next){ + destroyFile: function(req, res, next){ var filePromises = db.destroyFiles([res.file]) Promise.all(filePromises).then( () => next() ) .catch(err => { console.error(err); next() }) |
