Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bessudnov committed Jan 28, 2024
1 parent cf95962 commit 945372f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AmoCRM/EntitiesServices/Sources/WebsiteButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function createAsync(WebsiteButtonCreateRequestModel $model): WebsiteButt
public function addOnlineChatAsync(int $sourceId): void
{
$this->request->post(
sprintf('%s/%d/%s', $this->getMethod(), $sourceId, self::ONLINE_CHAT_ENDPOINT)
sprintf('%s/%d/%s', $this->getMethod(), $sourceId, self::ONLINECHAT_ENDPOINT)
);
}

Expand All @@ -80,7 +80,8 @@ public function addOnlineChatAsync(int $sourceId): void
public function updateAsync(WebsiteButtonUpdateRequestModel $model): WebsiteButtonModel
{
$response = $this->request->patch(
sprintf('%s/%d', $this->getMethod(), $model->getSourceId()), $model->toApi()
sprintf('%s/%d', $this->getMethod(), $model->getSourceId()),
$model->toApi()
);

return WebsiteButtonModel::fromArray($response);
Expand Down

0 comments on commit 945372f

Please sign in to comment.