Skip to content

Commit d53b045

Browse files
author
Rafael Marinho
committed
fix(CHA-769): lint
1 parent 9eeaa8f commit d53b045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/GetStream/StreamChat/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,17 +1668,17 @@ public function queryDrafts(string $userId, ?array $filter = null, ?array $sort
16681668
public function getUserActiveLiveLocations(string $userId): StreamResponse
16691669
{
16701670
$params = ["user_id" => $userId];
1671-
return $this->client->get($this->getUrl() . "/users/live_locations", $params);
1671+
return $this->get("users/live_locations", $params);
16721672
}
16731673

16741674
/**
16751675
* Update a user active live location
16761676
* @link https://getstream.io/chat/docs/php/live-locations/?language=php#update-a-user-active-live-location
16771677
* @throws StreamException
16781678
*/
1679-
public function updateUserActiveLiveLocation(string $userId, array $location): StreamResponse
1679+
public function updateUserActiveLiveLocation(string $userId, string $messageId, array $location): StreamResponse
16801680
{
16811681
$params = ["user_id" => $userId, "message_id" => $messageId, "shared_location" => $location];
1682-
return $this->client->post($this->getUrl() . "/users/live_locations", $params);
1682+
return $this->post("users/live_locations", $params);
16831683
}
16841684
}

0 commit comments

Comments
 (0)