Error in paypal module

master
Mark Moffat 2019-11-03 16:03:11 +10:30
parent 7d2240dde6
commit 1665f461e2
1 changed files with 1 additions and 1 deletions

View File

@ -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;