feat: fix open-source to generate images

This commit is contained in:
Nevo David 2025-01-05 19:48:52 +07:00
parent 5fb59190f6
commit e87089d710
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}