From 11d2a073ea47e408cb3daad2839ee01ad343556a Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sat, 1 Oct 2022 11:45:58 -0400 Subject: [PATCH] Check if latest webhook is also same time as current webhook --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index cfde20d..3195315 100644 --- a/src/util.js +++ b/src/util.js @@ -294,7 +294,7 @@ async function handleStripeEvent(event) { const latestWebhookTimestamp = pnid.get('connections.stripe.latest_webhook_timestamp'); - if (latestWebhookTimestamp && latestWebhookTimestamp > event.created) { + if (latestWebhookTimestamp && latestWebhookTimestamp >= event.created) { // Do nothing, this webhook is older than the latest seen return; }