lib/flagsmith/sdk/analytics_processor.rb in flagsmith-3.0.1 vs lib/flagsmith/sdk/analytics_processor.rb in flagsmith-3.1.0
- old
+ new
@@ -29,11 +29,11 @@
@analytics_data = {}
@last_flushed = Time.now
end
- def track_feature(feature_id)
- @analytics_data[feature_id] = @analytics_data.fetch(feature_id, 0) + 1
+ def track_feature(feature_name)
+ @analytics_data[feature_name] = @analytics_data.fetch(feature_name, 0) + 1
flush if (Time.now - @last_flushed) > TIMER * 1000
end
end
end