Skip to content

Commit

Permalink
fix: version in assignment event details
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Mar 7, 2024
1 parent 58bce2e commit a2e7a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/assignment/AssignmentTracker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ internal fun Assignment.toAmplitudeEvent(): Event {
}
event.eventProperties = JSONObject().apply {
for ((flagKey, variant) in this@toAmplitudeEvent.results) {
val version = variant.metadata?.get("version")
val version = variant.metadata?.get("flagVersion")
val segmentName = variant.metadata?.get("segmentName")
val details = "v$version rule:$segmentName"
put("$flagKey.variant", variant.key)
Expand Down

0 comments on commit a2e7a47

Please sign in to comment.