Skip to content

Commit

Permalink
Add logging statement to purchase.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcrammer committed Apr 10, 2024
1 parent 25440c0 commit 1ecd31d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/purchase.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ router.post("/", authMiddleware("payments_create", { allowSelf: true }), async (
slug,
} = req.body

console.log(req.body)

try {
if (!product_id) throw new CodedError("product_id is required", "PUR01")
if (!email) throw new CodedError("email is required", "PUR02")
Expand Down

0 comments on commit 1ecd31d

Please sign in to comment.