diff --git a/api/src/controllers/item.js b/api/src/controllers/item.js index 45089a1f..9e8537c5 100644 --- a/api/src/controllers/item.js +++ b/api/src/controllers/item.js @@ -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 });