Skip to content

Commit

Permalink
Decode Tax instance from tax JSON key in SalesTax.tax(for:) method
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkleveter committed Dec 5, 2018
1 parent b9e3c74 commit 2b2d6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TaxJar/API/Controllers/SalesTax.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class SalesTax: ServiceType {
let request = Request(http: http, using: self.container)

let response = try self.container.client().send(request)
return response.flatMap { try $0.content.decode(Tax.self) }
return response.flatMap { return $0.content.get(Tax.self, at: "tax") }

} catch let error {
return self.container.future(error: error)
Expand Down

0 comments on commit 2b2d6ae

Please sign in to comment.