Fixed bug on full search

This commit is contained in:
dbroqua 2019-03-15 13:55:10 +01:00
parent 338eeb4562
commit 218f5de6a0

View File

@ -141,7 +141,7 @@ class Vegetables {
vegetables.findAndCountAll({
where: {
name: {
[Op.iLike]: req.query.q
[Op.like]: `%${req.query.q}%`
}
},
include: ['Type'],