Skip to content

Commit

Permalink
create_results update
Browse files Browse the repository at this point in the history
  • Loading branch information
etozzato committed Mar 16, 2018
1 parent faff04b commit 791f3da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Metrc/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ def create_results(label, license_number, results = [], results_date = Time.now.
raise Errors::NotFound.new("Package `#{label}` not found") if response.parsed_response.nil?
api_post(
"/labtests/v1/record?licenseNumber=#{license_number}",
body: {
body: [{
'Label' => label,
'ResultDate' => results_date,
'Results' => sanitize(results)
}.to_json
}].to_json
)
end

Expand Down

0 comments on commit 791f3da

Please sign in to comment.