We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a463c6 commit 5bfeb27Copy full SHA for 5bfeb27
src/stripe/stripe.service.ts
@@ -201,10 +201,6 @@ export class StripeService {
201
}>
202
> {
203
try {
204
- const subscription = await this.stripe.subscriptions.retrieve(
205
- currentSubscription.externalId,
206
- );
207
-
208
if (currentSubscription.tier === "starter") {
209
return {
210
success: true,
@@ -222,6 +218,10 @@ export class StripeService {
222
218
};
223
219
}
224
220
221
+ const subscription = await this.stripe.subscriptions.retrieve(
+ currentSubscription.externalId,
+ );
+
225
if (subscription.canceled_at) {
226
227
0 commit comments