Fixed bug

This commit is contained in:
dbroqua 2018-09-19 22:12:42 +02:00
parent e4f06185fe
commit ca364f202e

View file

@ -120,7 +120,7 @@ class Vegetables {
let thumb = new Resize()
let large = new Resize()
const key = uuid()
let _create = function () {
let _create = () => {
if (uploaded === 2) {
this._createItem(req, callback)
fs.unlink(req.file.path, () => {})
@ -216,7 +216,7 @@ class Vegetables {
this._deleteMedias(item.mainPicture)
}
let _patch = function () {
let _patch = () => {
if (uploaded === 2) {
this._patchOne(item, values, callback)
fs.unlink(req.file.path, () => {})