Skip to content

Commit 5bfeb27

Browse files
committed
fix(stripe): fixed another bug
1 parent 8a463c6 commit 5bfeb27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stripe/stripe.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ export class StripeService {
201201
}>
202202
> {
203203
try {
204-
const subscription = await this.stripe.subscriptions.retrieve(
205-
currentSubscription.externalId,
206-
);
207-
208204
if (currentSubscription.tier === "starter") {
209205
return {
210206
success: true,
@@ -222,6 +218,10 @@ export class StripeService {
222218
};
223219
}
224220

221+
const subscription = await this.stripe.subscriptions.retrieve(
222+
currentSubscription.externalId,
223+
);
224+
225225
if (subscription.canceled_at) {
226226
return {
227227
success: true,

0 commit comments

Comments
 (0)