Skip to content

Commit

Permalink
hotfix (search): Fix parameter in query response
Browse files Browse the repository at this point in the history
  • Loading branch information
karahan-sahin committed Feb 21, 2024
1 parent e10d231 commit b3e8ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const listItems = async (req, res, next) => {
if(res.data.items.length > 0){
const itemService = new ItemService()
console.log(res.data.items.map(i => i.id));
response = await itemService.getIndexItemsByIds(res.data.items.map(i => i.id), null, 240, true)
response = await itemService.getIndexItemsByIds(res.data.items.map(i => i.webPageId), null, 240, true)
}
} catch (error) {
return res.status(400).json({ error: error.message });
Expand Down

0 comments on commit b3e8ff6

Please sign in to comment.