From 1665f461e285e8c232d5374fcdeaa1f323d08f4f Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Sun, 3 Nov 2019 16:03:11 +1030 Subject: [PATCH] Error in paypal module --- routes/payments/paypal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/payments/paypal.js b/routes/payments/paypal.js index 2fd854e..f4b1d25 100644 --- a/routes/payments/paypal.js +++ b/routes/payments/paypal.js @@ -192,7 +192,7 @@ router.post('/checkout_action', (req, res, next) => { } // get the new ID - const newId = newDoc.insertedIds['0']; + const newId = newDoc.insertedId; // set the order ID in the session req.session.orderId = newId;