Skip to content

Commit 1d25815

Browse files
authored
fix: only check for stripe webhooks (#110)
There might be other webhooks being stored in webhook_calls table, for example mailcoach is storing sns webhooks
1 parent 63e65ce commit 1d25815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StripeWebhookProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class StripeWebhookProfile implements WebhookProfile
1010
{
1111
public function shouldProcess(Request $request): bool
1212
{
13-
return ! WebhookCall::where('payload->id', $request->get('id'))->exists();
13+
return ! WebhookCall::where('name', 'stripe')->where('payload->id', $request->get('id'))->exists();
1414
}
1515
}

0 commit comments

Comments
 (0)