diff --git a/middleware/Vegetables.js b/middleware/Vegetables.js index abbc9f9..8661d34 100644 --- a/middleware/Vegetables.js +++ b/middleware/Vegetables.js @@ -141,7 +141,7 @@ class Vegetables { vegetables.findAndCountAll({ where: { name: { - [Op.iLike]: req.query.q + [Op.like]: `%${req.query.q}%` } }, include: ['Type'],