Skip to content

Commit 4a22cb4

Browse files
fix(api): adjust max snooze duration logic based on NOVU_ENTERPRISE environment variable
1 parent 8e10051 commit 4a22cb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/src/app/inbox/usecases/session/session.usecase.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ export class Session {
111111
const token = await this.authService.getSubscriberWidgetToken(subscriber);
112112

113113
const removeNovuBranding = inAppIntegration.removeNovuBranding || false;
114-
const maxSnoozeDurationHours = await this.getMaxSnoozeDurationHours(environment);
114+
const maxSnoozeDurationHours =
115+
process.env.NOVU_ENTERPRISE === 'true' ? await this.getMaxSnoozeDurationHours(environment) : 0;
115116

116117
/**
117118
* We want to prevent the playground inbox demo from marking the integration as connected

0 commit comments

Comments
 (0)