mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
[API] resolve deprecation error
error detail: DeprecationWarning: Calling an asynchronous function without callback is deprecated.
This commit is contained in:
parent
c84fa5205d
commit
8eff94e1bc
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