Update ClientbaseAPI.php

This commit is contained in:
gora-clientbase 2026-01-15 10:54:26 +03:00 committed by GitHub
parent a815265bb6
commit 3944791ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ class ClientbaseAPI
$body = $this->bodyFromData($data);
$body->data->type = "data" . $tableId;
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "POST", "", $body);
$rawResult = $this->query("/data" . $tableId, "POST", [], $body);
$result = $this->_rawToResult($rawResult);
return $result;
@ -206,7 +206,7 @@ class ClientbaseAPI
$body = $this->bodyFromData($data);
$body->data->type = "data" . $tableId;
$body->data->id = $lineId;
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "PATCH", "", $body);
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "PATCH", [], $body);
$result = $this->_rawToResult($rawResult);
return $result;