Skip to content

Commit

Permalink
data-kiosk-retrieve-document-content
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjjaymahalingam committed Jul 30, 2024
1 parent 141e47e commit 07a0101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/muffin_man/data_kiosk/v20231115.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def get_document(document_id)
call_api
end

def download_document(document_id)
response = get_document(document_id)
if response.success?
Typhoeus.get(JSON.parse(response.body)["documentUrl"])
def retrieve_document_content(document_id)
get_document_response = get_document(document_id)
if get_document_response.success?
Typhoeus.get(JSON.parse(get_document_response.body)["documentUrl"], accept_encoding: "")
else
response
get_document_response
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/muffin_man/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module MuffinMan
VERSION = "2.2.1"
VERSION = "2.2.2"
end

0 comments on commit 07a0101

Please sign in to comment.