Skip to content

Commit 344f451

Browse files
test: fix via code under test
1 parent 075e511 commit 344f451

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

OptimizelySDK/Optimizely.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,17 +1081,17 @@ ProjectConfig projectConfig
10811081

10821082
var decisionInfo = new Dictionary<string, object>
10831083
{
1084-
{ "featureKey", flagKey },
1085-
{ "featureEnabled", flagEnabled },
1086-
{ "variableValues", variableMap },
1084+
{ "flagKey", flagKey },
1085+
{ "enabled", flagEnabled },
1086+
{ "variables", variableMap },
10871087
{ "variationKey", variationKey },
10881088
{ "ruleKey", ruleKey },
10891089
{ "reasons", reasonsToReport },
10901090
{ "decisionEventDispatched", decisionEventDispatched },
10911091
};
10921092

10931093
NotificationCenter.SendNotifications(NotificationCenter.NotificationType.Decision,
1094-
userId, user.GetAttributes(), decisionInfo);
1094+
DecisionNotificationTypes.FLAG, userId, user.GetAttributes(), decisionInfo);
10951095

10961096
return new OptimizelyDecision(
10971097
variationKey,
@@ -1414,7 +1414,7 @@ List<OdpSegmentOption> segmentOptions
14141414

14151415
if (config == null)
14161416
{
1417-
Logger.Log(LogLevel.ERROR,"Datafile has invalid format. Failing 'FetchQualifiedSegments'.");
1417+
Logger.Log(LogLevel.ERROR, "Datafile has invalid format. Failing 'FetchQualifiedSegments'.");
14181418
return null;
14191419
}
14201420

0 commit comments

Comments
 (0)