Fixed bug on full search
This commit is contained in:
parent
338eeb4562
commit
218f5de6a0
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class Vegetables {
|
|||
vegetables.findAndCountAll({
|
||||
where: {
|
||||
name: {
|
||||
[Op.iLike]: req.query.q
|
||||
[Op.like]: `%${req.query.q}%`
|
||||
}
|
||||
},
|
||||
include: ['Type'],
|
||||
|
|
Loading…
Reference in a new issue