default latest_webhook_timestamp value

This commit is contained in:
Jonathan Barrow
2022-07-15 20:49:52 -04:00
parent 6bec0fdc31
commit 1fe69f915f

View File

@@ -559,7 +559,8 @@ router.post('/stripe/checkout/:priceId', async (request, response) => {
await database.PNID.updateOne({ pid }, {
$set: {
'connections.stripe.customer_id': customer.id // ensure PNID always has latest customer ID
'connections.stripe.customer_id': customer.id, // ensure PNID always has latest customer ID
'connections.stripe.latest_webhook_timestamp': 0
}
}, { upsert: true }).exec();