diff --git a/packages/twenty-server/src/engine/core-modules/billing/services/billing-usage.service.ts b/packages/twenty-server/src/engine/core-modules/billing/services/billing-usage.service.ts index a4f8c57770..973077da5e 100644 --- a/packages/twenty-server/src/engine/core-modules/billing/services/billing-usage.service.ts +++ b/packages/twenty-server/src/engine/core-modules/billing/services/billing-usage.service.ts @@ -56,12 +56,15 @@ export class BillingUsageService { return true; } - const billingSubscription = - await this.billingSubscriptionService.getCurrentBillingSubscription({ - workspaceId, - }); + const { billingSubscription } = + await this.workspaceCacheService.getOrRecompute(workspaceId, [ + 'billingSubscription', + ]); - return !!billingSubscription; + return ( + isDefined(billingSubscription) && + billingSubscription.status !== SubscriptionStatus.Canceled + ); } async getResourceCreditProductUsage(