mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Merge pull request #64 from armchair-philosophy/async
[API] resolve deprecation error
This commit is contained in:
commit
ce382c160d
@ -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 New Issue
Block a user