Skip to content

Commit

Permalink
Use PUT for sync action, same as async (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean authored Feb 24, 2025
1 parent 000ebe6 commit ebe0ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/Update/Sync/UpdateTierPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function update(Price $price): bool
}

$response = $this->magento
->post('products/tier-prices', ['prices' => $payload])
->put('products/tier-prices', ['prices' => $payload])
->onError(function (Response $response) use ($price, $payload): void {
activity()
->on($price)
Expand Down

0 comments on commit ebe0ba2

Please sign in to comment.