Fixed bug
This commit is contained in:
parent
cd11c01c9b
commit
43a5234ab3
1 changed files with 7 additions and 7 deletions
|
@ -50,7 +50,6 @@ class Aws {
|
|||
}
|
||||
|
||||
try {
|
||||
|
||||
(async () => {
|
||||
const file = await imagemin([newFile], '/tmp', {
|
||||
plugins: [
|
||||
|
@ -69,8 +68,9 @@ class Aws {
|
|||
fs.unlink(file[0].path, () => { })
|
||||
})
|
||||
})()
|
||||
} catch (e) {
|
||||
callback(e)
|
||||
}
|
||||
catch (callback)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue