mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 14:15:12 +00:00
Merge pull request #64 from armchair-philosophy/async
[API] resolve deprecation error
This commit is contained in:
commit
69f9a7f666
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module.exports = (file, params, user) =>
|
|||
new Promise(async (res, rej) =>
|
||||
{
|
||||
const buffer = fs.readFileSync(file.path);
|
||||
fs.unlink(file.path);
|
||||
fs.unlink(file.path, (err) => { if (err) console.log(err) });
|
||||
|
||||
// Get 'name' parameter
|
||||
let name = file.originalname;
|
||||
|
|
Loading…
Reference in a new issue