develop #10

Merged
pablone merged 64 commits from develop into master 2024-04-22 11:35:55 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit a5e39fdc7f - Show all commits
api/controller/Product

View File

@ -95,8 +95,9 @@ class ProductController {
}
async findById(req, res) {
const { dateExpired, postalCode } = req.query
const id = Number(req.params.id)
const _products = await db.getProducts();
const _products = await db.getProducts(dateExpired, postalCode);
const filterProduct = _products[0].filter(item => item.id === id)
return res.status(200).send({