Skip to content

Commit 81a1c1d

Browse files
authored
fix: allow resyncing deleted customer (#266)
1 parent f186691 commit 81a1c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sync-engine/src/stripeSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ export class StripeSync {
606606
async syncSingleEntity(stripeId: string) {
607607
if (stripeId.startsWith('cus_')) {
608608
return this.stripe.customers.retrieve(stripeId).then((it) => {
609-
if (!it || it.deleted) return
609+
if (!it) return
610610

611611
return this.upsertCustomers([it])
612612
})

0 commit comments

Comments
 (0)