Skip to content

Commit

Permalink
feat: fix open-source to generate images
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Jan 5, 2025
1 parent 5fb5919 commit e87089d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/api/routes/media.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e87089d

Please sign in to comment.