This commit is contained in:
parent
ca26858e51
commit
f44b0e217a
@ -12,7 +12,7 @@ exports.getSearch = async function(req, res) {
|
|||||||
const results = await Item.findAll({
|
const results = await Item.findAll({
|
||||||
where: {
|
where: {
|
||||||
name: {
|
name: {
|
||||||
[Op.like]: query,
|
[Op.like]: '%' + query + '%',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user