Skip to content

Commit

Permalink
fix(api-service): fix steps limit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge committed Feb 12, 2025
1 parent 7a894ea commit edc45e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ResourceValidatorService {

async validateStepsLimit(environmentId: string, steps: NotificationStep[]) {
const isWorkflowLimitEnabled = await this.getFeatureFlag.execute({
key: FeatureFlagsKeysEnum.IS_MAX_WORKFLOW_LIMIT_ENABLED,
key: FeatureFlagsKeysEnum.IS_MAX_STEPS_PER_WORKFLOW_ENABLED,
environmentId,
organizationId: 'system',
userId: 'system',
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/types/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ export enum FeatureFlagsKeysEnum {
IS_SUBSCRIBERS_PAGE_ENABLED = 'IS_SUBSCRIBERS_PAGE_ENABLED',
IS_WORKFLOW_CHECK_LIST_ENABLED = 'IS_WORKFLOW_CHECK_LIST_ENABLED',
IS_TIER_DURATION_RESTRICTION_EXCLUDED_ENABLED = 'IS_TIER_DURATION_RESTRICTION_EXCLUDED_ENABLED',
IS_MAX_STEPS_PER_WORKFLOW_ENABLED = 'IS_MAX_STEPS_PER_WORKFLOW_ENABLED',
MAX_WORKFLOW_LIMIT_NUMBER = 'MAX_WORKFLOW_LIMIT_NUMBER',
}

0 comments on commit edc45e1

Please sign in to comment.