Removed console.log

This commit is contained in:
Damien Broqua 2019-03-12 23:11:28 +01:00
parent 8b8f20a6d1
commit 823e6f0de3
4 changed files with 13 additions and 41 deletions

View file

@ -165,10 +165,7 @@ class Pictures {
fs.unlink(large.output, () => { })
console.log('avant thumb')
resize.createThumbnail(req.file.path, (err, file) => {
console.log('après createThumb')
if (err) {
callback(err, null)
return false
@ -178,7 +175,6 @@ class Pictures {
path: file.output,
filename: `picture_${req.params.vegetablesId}_${key}_thumb.${req.file.originalname.split('.')[req.file.originalname.split('.').length - 1]}`
}, (err, res) => {
console.log('après upload')
if (err) { callback(err, null) }
this._createOne(req, callback)

View file

@ -85,7 +85,6 @@ class VegetableProperties {
callback(null, null)
})
.catch(e => {
console.log('this case?')
callback(e, null)
})
})