From 1fe69f915f75acc5d3e6d9d3deeba503d3b74b8a Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Fri, 15 Jul 2022 20:49:52 -0400 Subject: [PATCH] default latest_webhook_timestamp value --- src/routers/account.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routers/account.js b/src/routers/account.js index d42617a..1ee44e9 100644 --- a/src/routers/account.js +++ b/src/routers/account.js @@ -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();