Skip to content

Commit

Permalink
chore: make flags optional on init
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Dec 6, 2023
1 parent 0ab68f9 commit 5f935db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/rules-engine/src/RulesEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export class RulesEngine {
outputConverter: IConvertOutputRulesEffectsValue,
dateUtils: IDateUtils,
environment: $Values<environmentTypes>,
flags: Flag,
flags?: Flag,
) {
this.inputConverter = inputConverter;
this.outputConverter = outputConverter;
this.valueProcessor = new ValueProcessor(inputConverter);
this.variableService = new VariableService(this.valueProcessor.processValue, dateUtils, environment);
this.dateUtils = dateUtils;
this.flags = flags;
this.flags = flags ?? {};
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/core_modules/capture-core/rules/rulesEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ export const rulesEngine = new RulesEngine(
outputConverter,
dateUtils,
environmentTypes.WebClient,
{ verbose: true },
);

0 comments on commit 5f935db

Please sign in to comment.