mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(bug) cannot load statistic
This commit is contained in:
parent
1dee7d6f93
commit
6bdbe1fe50
@ -12,7 +12,7 @@ class Statistics::QueryService
|
||||
|
||||
# run main query in elasticSearch
|
||||
query = MultiJson.load(request.body.read)
|
||||
model = "Stats::#{statistic_index}".constantize
|
||||
model = "Stats::#{statistic_index.capitalize}".constantize
|
||||
results = model.search(query, request.query_parameters.symbolize_keys).response
|
||||
|
||||
# run additional custom aggregations, if any
|
||||
|
Loading…
x
Reference in New Issue
Block a user