Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: map to Statsig CustomIDs #210

Merged
merged 9 commits into from
Jun 7, 2024
Prev Previous commit
Next Next commit
Bugfix
Signed-off-by: Jens Henneberg <[email protected]>
  • Loading branch information
jenshenneberg committed Jun 6, 2024
commit 67e0ff7cb65725c9642a12743a97297a5ea871a3
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public static StatsigUser AsStatsigUser(this EvaluationContext evaluationContext
if (item.Value.IsStructure)
{
var customIds = item.Value.AsStructure;
foreach (var items in customIds)
foreach (var customId in customIds)
{
if (item.Value.IsString)
user.AddCustomID(items.Key, items.Value.AsString);
if (customId.Value.IsString)
user.AddCustomID(customId.Key, customId.Value.AsString);
else throw new FeatureProviderException(Constant.ErrorType.TypeMismatch, "Only string values are supported for CustomIDs");
}
}
Expand Down