stripe-sync-engine
stripe-sync-engine copied to clipboard
Bug: Missing break in syncBackfill causes payment_intent to also sync plans
Description
Missing break statement in syncBackfill switch causes unintended fallthrough from payment_intent case to plan case.
Location
packages/sync-engine/src/stripeSync.ts lines 709-711
case 'payment_intent':
paymentIntents = await this.syncPaymentIntents(params)
case 'plan': // falls through here
Impact
Calling syncBackfill({ object: 'payment_intent' }) also syncs plans unexpectedly.
Fix
Add break after syncPaymentIntents call.
:tada: This issue has been resolved in version 0.46.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: