Skip to content

Commit

Permalink
feat: constraints limit in a strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Jul 8, 2024
1 parent 2008bc1 commit 4736fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/features/feature-toggle/feature-toggle-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class FeatureToggleService {
}
}

validateConstraintValuesLimit(updatedConstrains: IConstraint[]) {
validateConstraintsLimit(updatedConstrains: IConstraint[]) {
if (!this.flagResolver.isEnabled('resourceLimits')) return;

const constraintsLimit = this.resourceLimits.constraints;
Expand Down Expand Up @@ -655,7 +655,7 @@ class FeatureToggleService {
strategyConfig.constraints &&
strategyConfig.constraints.length > 0
) {
this.validateConstraintValuesLimit(strategyConfig.constraints);
this.validateConstraintsLimit(strategyConfig.constraints);
strategyConfig.constraints = await this.validateConstraints(
strategyConfig.constraints,
);
Expand Down Expand Up @@ -814,7 +814,7 @@ class FeatureToggleService {

if (existingStrategy.id === id) {
if (updates.constraints && updates.constraints.length > 0) {
this.validateConstraintValuesLimit(updates.constraints);
this.validateConstraintsLimit(updates.constraints);
updates.constraints = await this.validateConstraints(
updates.constraints,
);
Expand Down

0 comments on commit 4736fb0

Please sign in to comment.