This commit is contained in:
parent
1118283cb7
commit
be408865cf
@ -9,7 +9,7 @@ exports.getSearch = async function(req, res) {
|
||||
let query = req.params.query;
|
||||
|
||||
// fetch inventory items from database based on search query
|
||||
const results = await Item.find({
|
||||
const results = await Item.findAll({
|
||||
where: {
|
||||
name: {
|
||||
[Op.like]: query,
|
||||
|
Loading…
Reference in New Issue
Block a user