Added a search page
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Gregory Ballantine 2024-05-21 10:25:46 -04:00
parent ca26858e51
commit f44b0e217a

View File

@ -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,