accept array for select parameter

pull/10136/head
ulferts 3 years ago
parent fda76ed75e
commit 0a879ed9a9
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 4
      lib/api/v3/utilities/endpoints/sql_index.rb

@ -64,8 +64,10 @@ module API
return unless key_params
key_params
.delete_prefix('[')
.delete_suffix(']')
.split(',')
.map { |path| nested_hash(path.split('/')) }
.map { |path| nested_hash(path.strip.tr("\"'", '').split('/')) }
.inject({}) { |hash, nested| hash.deep_merge(nested) }
end

Loading…
Cancel
Save