From 1ecd31d39eabb15ee3b8e4037b5f964b8e3bfeba Mon Sep 17 00:00:00 2001 From: davidcrammer Date: Wed, 10 Apr 2024 08:07:42 -0700 Subject: [PATCH] Add logging statement to purchase.js --- src/routes/purchase.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/purchase.js b/src/routes/purchase.js index aaa68a5..a3088b6 100644 --- a/src/routes/purchase.js +++ b/src/routes/purchase.js @@ -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")