Skip to content

Commit a0ac53f

Browse files
committed
fix
1 parent 5c07ce7 commit a0ac53f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Listeners/AccountUpdated.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Contracts\Queue\ShouldQueue;
77
use Illuminate\Support\Facades\Cache;
88
use Spatie\WebhookClient\Models\WebhookCall;
9-
use Stripe\Account;
109

1110
/**
1211
* @see https://docs.stripe.com/connect/webhooks
@@ -35,7 +34,7 @@ public function handle(WebhookCall $event): void
3534

3635
$model->importFromStripeAccount($account); // @phpstan-ignore-line
3736

38-
if ($model->shouldCacheStripeCustomer()) { // @phpstan-ignore-line
37+
if ($model->shouldCacheStripeAccount()) { // @phpstan-ignore-line
3938
Cache::forever(
4039
$model->stripeAccountCacheKey(), // @phpstan-ignore-line
4140
$account

0 commit comments

Comments
 (0)