Skip to content

Commit

Permalink
update product-service.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zylcom committed Aug 15, 2023
1 parent 965e229 commit 16dac11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/product-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ const update = async (request) => {
include: { tags: true },
});

console.log(product);

if (!product) {
throw new ResponseError(404, "Product not found!");
}
Expand Down

0 comments on commit 16dac11

Please sign in to comment.