diff --git a/packages/stripe/src/index.ts b/packages/stripe/src/index.ts index bee3088454..717d851fb3 100644 --- a/packages/stripe/src/index.ts +++ b/packages/stripe/src/index.ts @@ -200,7 +200,18 @@ export const stripe = (options: O) => { const subscriptionToUpdate = ctx.body.subscriptionId ? await ctx.context.adapter.findOne({ model: "subscription", - where: [{ field: "id", value: ctx.body.subscriptionId }], + where: [ + { + field: "id", + value: ctx.body.subscriptionId, + connector: "OR", + }, + { + field: "stripeSubscriptionId", + value: ctx.body.subscriptionId, + connector: "OR", + }, + ], }) : null;