Skip to content
Snippets Groups Projects
Commit 69f9a7f6 authored by syuilo⭐️'s avatar syuilo⭐️ Committed by GitHub
Browse files

Merge pull request #64 from armchair-philosophy/async

[API] resolve deprecation error
parents 7bc788fc c5a73ab2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment