mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-07-27 13:22:07 -05:00
Check if latest webhook is also same time as current webhook
This commit is contained in:
parent
9efb061a7e
commit
11d2a073ea
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user