mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Params for run query should be converted to hash
This commit is contained in:
parent
49994251e9
commit
f07c8f7469
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ class QueryService
|
|||
end
|
||||
end if data_source
|
||||
|
||||
parsed_query_options = get_query_options(data_query[:options])
|
||||
parsed_query_options = get_query_options(data_query[:options].permit!.to_h)
|
||||
|
||||
service_class = "#{data_query[:kind].capitalize}QueryService".constantize
|
||||
service = service_class.new data_query, data_source, parsed_query_options, parsed_options, current_user
|
||||
|
|
@ -31,7 +31,7 @@ class QueryService
|
|||
private
|
||||
def get_query_options(object)
|
||||
|
||||
if object.class.name === "Hash"
|
||||
if object.is_a?(Hash)
|
||||
|
||||
object.keys.each do |key|
|
||||
object[key] = get_query_options(object[key])
|
||||
|
|
|
|||
Loading…
Reference in a new issue