stripe-sync-engine icon indicating copy to clipboard operation
stripe-sync-engine copied to clipboard

Bug: Missing break in syncBackfill causes payment_intent to also sync plans

Open cescox opened this issue 1 year ago • 1 comments

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.

cescox avatar Nov 29 '25 18:11 cescox

: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:

github-actions[bot] avatar Dec 02 '25 06:12 github-actions[bot]