Bugs in payment modules

master
Mark Moffat 2019-11-04 17:09:05 +10:30
parent 687f234f25
commit 161be3075d
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ router.post('/checkout_action', (req, res, next) => {
} }
// get the new ID // get the new ID
const newId = newDoc.insertedIds['0']; const newId = newDoc.insertedId;
// add to lunr index // add to lunr index
indexOrders(req.app) indexOrders(req.app)

View File

@ -62,7 +62,7 @@ router.post('/checkout_action', (req, res, next) => {
} }
// get the new ID // get the new ID
const newId = newDoc.insertedIds['0']; const newId = newDoc.insertedId;
// add to lunr index // add to lunr index
indexOrders(req.app) indexOrders(req.app)