Fixed bug in AWS lib

This commit is contained in:
dbroqua 2019-03-12 23:13:47 +01:00
parent 823e6f0de3
commit a850629661

View file

@ -1,9 +1,6 @@
const AWS = require('aws-sdk') const AWS = require('aws-sdk')
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const imagemin = require('imagemin')
const imageminJpegtran = require('imagemin-jpegtran')
const imageminPngquant = require('imagemin-pngquant')
class Aws { class Aws {
constructor () { constructor () {
@ -35,6 +32,7 @@ class Aws {
callback(null, { callback(null, {
file: process.env.AWS_URL + dest file: process.env.AWS_URL + dest
}) })
fs.unlink(params.path, () => { })
} }
}) })
}) })