Skip to content

Commit

Permalink
Fix product get endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
szeber committed Nov 10, 2016
1 parent 4a4edc6 commit 4b3ae75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShoppinPal/Vend/Api/V0/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function get($productId)

$result = $this->sendRequest($request, 'product get');

return new Product($result, Product::UNKNOWN_PROPERTY_IGNORE);
return new Product($result['products'], Product::UNKNOWN_PROPERTY_IGNORE);
}

/**
Expand Down

0 comments on commit 4b3ae75

Please sign in to comment.