Skip to content

Commit e87089d

Browse files
committed
feat: fix open-source to generate images
1 parent 5fb5919 commit e87089d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/backend/src/api/routes/media.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class MediaController {
3939
isPicturePrompt = false
4040
) {
4141
const total = await this._subscriptionService.checkCredits(org);
42-
if (total.credits <= 0) {
42+
if (process.env.STRIPE_PUBLISHABLE_KEY && total.credits <= 0) {
4343
return false;
4444
}
4545

0 commit comments

Comments
 (0)