File tree Expand file tree Collapse file tree
lib/core/decision_service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -555,8 +555,9 @@ export class DecisionService {
555555 loggingKey ?: string | number ,
556556 ) : DecisionResponse < boolean > {
557557 const decideReasons : DecisionReason [ ] = [ ] ;
558- const experimentAudienceConditions = getExperimentAudienceConditions ( configObj , experiment . id ) ;
558+ const experimentAudienceConditions = experiment . audienceConditions || experiment . audienceIds ;
559559 const audiencesById = getAudiencesById ( configObj ) ;
560+
560561 this . logger ?. debug (
561562 EVALUATING_AUDIENCES_COMBINED ,
562563 evaluationAttribute ,
@@ -569,7 +570,9 @@ export class DecisionService {
569570 loggingKey || experiment . key ,
570571 JSON . stringify ( experimentAudienceConditions ) ,
571572 ] ) ;
573+
572574 const result = this . audienceEvaluator . evaluate ( experimentAudienceConditions , audiencesById , user ) ;
575+
573576 this . logger ?. info (
574577 AUDIENCE_EVALUATION_RESULT_COMBINED ,
575578 evaluationAttribute ,
You can’t perform that action at this time.
0 commit comments