Skip to content

Commit

Permalink
Update ArticleClient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MiChAeLoKGB committed Feb 10, 2022
1 parent 9b90ec7 commit 4432889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Article/ArticleClient.php
Expand Up @@ -91,7 +91,7 @@ public function updateProductPricing(string $productId, Pricing $pricing, ?strin
{
$url = sprintf(self::PRODUCT_PRICING, $productId);
if $forceToken != null {
$url = sprintf('%s?forceToken=%s', $url, $forceToken);
$url = sprintf('%s?force_token=%s', $url, $forceToken);
}
$this->sendJson('PUT', $url, $pricing->getArrayForApi());
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public function updateVariantPricing(string $productId, string $variantId, Prici
{
$url = sprintf(self::VARIANT_PRICING, $productId, $variantId);
if $forceToken != null {
$url = sprintf('%s?forceToken=%s', $url, $forceToken);
$url = sprintf('%s?force_token=%s', $url, $forceToken);
}
$this->sendJson('PUT', $url, $pricing->getArrayForApi());
}
Expand Down

0 comments on commit 4432889

Please sign in to comment.