1
0
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:
Du Peng 2022-10-18 12:46:20 +02:00
parent 1dee7d6f93
commit 6bdbe1fe50

View File

@ -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