diff --git a/ghost/members-api/lib/services/stripe-webhook/index.js b/ghost/members-api/lib/services/stripe-webhook/index.js index 21d62ae0e4..06178e7509 100644 --- a/ghost/members-api/lib/services/stripe-webhook/index.js +++ b/ghost/members-api/lib/services/stripe-webhook/index.js @@ -157,11 +157,11 @@ module.exports = class StripeWebhookService { setupIntent.payment_method ); - const subscriptions = member.related('stripeSubscriptions').fetch(); + const subscriptions = await member.related('stripeSubscriptions').fetch(); for (const subscription of subscriptions.models) { const updatedSubscription = await this._stripeAPIService.updateSubscriptionDefaultPaymentMethod( - subscription.id, + subscription.get('subscription_id'), setupIntent.payment_method ); await this._memberRepository.linkSubscription({