develop #10

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

View File

@ -98,7 +98,7 @@ class ProductController {
const { dateExpired, postalCode } = req.query
const id = Number(req.params.id)
const product = await db.getProductById(req.params.id);
const filterProduct = (product[0][0] && product[0][0][0])?product[0][0][0]:{};
const filterProduct = (product[0][0] && product[0][0])?product[0][0]:{};
return res.status(200).send({
data: filterProduct