Check if latest webhook is also same time as current webhook

This commit is contained in:
Jonathan Barrow
2022-10-01 11:45:58 -04:00
parent 9efb061a7e
commit 11d2a073ea

View File

@@ -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;
}