diff --git a/middleware/Vegetables.js b/middleware/Vegetables.js index 5573660..695ce1a 100644 --- a/middleware/Vegetables.js +++ b/middleware/Vegetables.js @@ -146,7 +146,7 @@ class Vegetables { }) }) - thumb.createLargeImage(req.file.path, (err, file) => { + thumb.createThumbnail(req.file.path, (err, file) => { if (err) { callback(err, null) return false @@ -242,7 +242,7 @@ class Vegetables { }) }) - thumb.createLargeImage(req.file.path, (err, file) => { + thumb.createThumbnail(req.file.path, (err, file) => { if (err) { callback(err, null) return false