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