Fix for incorrect url for REST API queries

This commit is contained in:
navaneeth 2021-05-02 19:30:08 +05:30
parent b687b49127
commit 1fdbac3f2d

View file

@ -38,12 +38,12 @@ class RestapiQueryService
response = if method.downcase === 'get'
HTTParty.send(method.downcase,
data_query.options['url'],
url,
headers: headers,
query: url_params.to_h)
else
HTTParty.send(method.downcase,
data_query.options['url'],
url,
headers: headers,
query: url_params.to_h,
body: body.to_h)