Bugs in payment modules
parent
687f234f25
commit
161be3075d
|
@ -82,7 +82,7 @@ router.post('/checkout_action', (req, res, next) => {
|
|||
}
|
||||
|
||||
// get the new ID
|
||||
const newId = newDoc.insertedIds['0'];
|
||||
const newId = newDoc.insertedId;
|
||||
|
||||
// add to lunr index
|
||||
indexOrders(req.app)
|
||||
|
|
|
@ -62,7 +62,7 @@ router.post('/checkout_action', (req, res, next) => {
|
|||
}
|
||||
|
||||
// get the new ID
|
||||
const newId = newDoc.insertedIds['0'];
|
||||
const newId = newDoc.insertedId;
|
||||
|
||||
// add to lunr index
|
||||
indexOrders(req.app)
|
||||
|
|
Loading…
Reference in New Issue