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