1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-29 23:38:13 +09:00

Merge pull request #64 from armchair-philosophy/async

[API] resolve deprecation error
This commit is contained in:
syuilo⭐️ 2017-01-24 22:36:26 +09:00 committed by GitHub
commit 69f9a7f666

View File

@ -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;