We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f186b1c commit 3020a78Copy full SHA for 3020a78
app/services/forest_liana/query_stat_getter.rb
@@ -13,14 +13,14 @@ def initialize(params)
13
end
14
15
def perform
16
- raw_query = @params['query'].strip
+ context_variables = Utils::ContextVariables.new(nil, nil, @params['contextVariables'])
17
+ raw_query = Utils::ContextVariablesInjector.inject_context_in_value(@params['query'].strip, context_variables)
18
19
LiveQueryChecker.new(raw_query, 'Live Query Chart').validate()
20
21
if @params['record_id']
22
raw_query.gsub!('?', @params['record_id'].to_s)
23
-
24
result = ActiveRecord::Base.connection.execute(raw_query)
25
26
case @params['type']
0 commit comments