Skip to content

Commit a78d188

Browse files
committed
Move enum
1 parent 875c04e commit a78d188

File tree

1 file changed

+1
-2
lines changed
  • packages/optimizely-sdk/lib/core/decision_service

1 file changed

+1
-2
lines changed

packages/optimizely-sdk/lib/core/decision_service/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ var ERROR_MESSAGES = enums.ERROR_MESSAGES;
2727
var LOG_LEVEL = enums.LOG_LEVEL;
2828
var LOG_MESSAGES = enums.LOG_MESSAGES;
2929
var DECISION_SOURCES = enums.DECISION_SOURCES;
30-
var STICKY_BUCKETING_KEY = '$opt_experiment_bucket_map';
3130

3231

3332

@@ -114,7 +113,7 @@ DecisionService.prototype.getVariation = function(experimentKey, userId, attribu
114113
DecisionService.prototype.__resolveExperimentBucketMap = function(userId, attributes) {
115114
attributes = attributes || {}
116115
var userProfile = this.__getUserProfile(userId) || {};
117-
var attributeExperimentBucketMap = attributes[STICKY_BUCKETING_KEY];
116+
var attributeExperimentBucketMap = attributes[enums.CONTROL_ATTRIBUTES.STICKY_BUCKETING_KEY];
118117
return fns.assignIn({}, userProfile.experiment_bucket_map, attributeExperimentBucketMap);
119118
};
120119

0 commit comments

Comments
 (0)