diff --git a/apps/backend/src/api/routes/media.controller.ts b/apps/backend/src/api/routes/media.controller.ts index d9a0b906..8b520f3c 100644 --- a/apps/backend/src/api/routes/media.controller.ts +++ b/apps/backend/src/api/routes/media.controller.ts @@ -39,7 +39,7 @@ export class MediaController { isPicturePrompt = false ) { const total = await this._subscriptionService.checkCredits(org); - if (total.credits <= 0) { + if (process.env.STRIPE_PUBLISHABLE_KEY && total.credits <= 0) { return false; }