Skip to content

Commit

Permalink
updated rx client
Browse files Browse the repository at this point in the history
  • Loading branch information
agravell047 committed Mar 26, 2024
1 parent 2b7d0e7 commit a1ab89b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/rx/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@ def get_tracking_history_rx(id)
# @return [Faraday::Env]
#
def post_refill_rxs(ids)
if (result = perform(:post, 'prescription/rxrefill', ids, token_headers))
Common::Collection.bust([cache_key('getactiverx'), cache_key('gethistoryrx')])
end
result
perform(:post, 'prescription/rxrefill', ids, token_headers)
end

##
Expand All @@ -136,10 +133,7 @@ def post_refill_rxs(ids)
# @return [Faraday::Env]
#
def post_refill_rx(id)
if (result = perform(:post, "prescription/rxrefill/#{id}", nil, token_headers))
Common::Collection.bust([cache_key('getactiverx'), cache_key('gethistoryrx')])
end
result
perform(:post, "prescription/rxrefill/#{id}", nil, token_headers)
end

##
Expand Down

0 comments on commit a1ab89b

Please sign in to comment.