Skip to content

Commit

Permalink
allow submission to send to different urls
Browse files Browse the repository at this point in the history
  • Loading branch information
s-caso committed Oct 8, 2024
1 parent 3179069 commit 25d8e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/meb_api/lib/dgi/submission/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ def submit_claim(params, response_data = nil)
with_monitoring do
headers = request_headers
options = { timeout: 60 }
response = perform(:post, end_point, format_params(params), headers, options)
response = perform(:post, end_point(params["@type"]), format_params(params), headers, options)

Check failure on line 21 in modules/meb_api/lib/dgi/submission/service.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

MebApi::DGI::Submission::SubmissionResponse.new(response.status, response)
end
end

private

def end_point
'claimType/Chapter33/claimsubmission'
def end_point(form_type = 'Chapter33')
"claimType/#{form_type}/claimsubmission"
end

def request_headers
Expand Down

0 comments on commit 25d8e8f

Please sign in to comment.