From 218f5de6a0674d84834c92d1fb3c0bf4a1646d67 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 15 Mar 2019 13:55:10 +0100 Subject: [PATCH] Fixed bug on full search --- middleware/Vegetables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'],