feat: fix open-source to generate images
This commit is contained in:
parent
5fb59190f6
commit
e87089d710
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue