Fixed bug
This commit is contained in:
parent
e4f06185fe
commit
ca364f202e
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ class Vegetables {
|
||||||
let thumb = new Resize()
|
let thumb = new Resize()
|
||||||
let large = new Resize()
|
let large = new Resize()
|
||||||
const key = uuid()
|
const key = uuid()
|
||||||
let _create = function () {
|
let _create = () => {
|
||||||
if (uploaded === 2) {
|
if (uploaded === 2) {
|
||||||
this._createItem(req, callback)
|
this._createItem(req, callback)
|
||||||
fs.unlink(req.file.path, () => {})
|
fs.unlink(req.file.path, () => {})
|
||||||
|
@ -216,7 +216,7 @@ class Vegetables {
|
||||||
this._deleteMedias(item.mainPicture)
|
this._deleteMedias(item.mainPicture)
|
||||||
}
|
}
|
||||||
|
|
||||||
let _patch = function () {
|
let _patch = () => {
|
||||||
if (uploaded === 2) {
|
if (uploaded === 2) {
|
||||||
this._patchOne(item, values, callback)
|
this._patchOne(item, values, callback)
|
||||||
fs.unlink(req.file.path, () => {})
|
fs.unlink(req.file.path, () => {})
|
||||||
|
|
Loading…
Reference in a new issue