Skip to content

Commit

Permalink
fix Trophy fetch endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tustin committed Oct 24, 2022
1 parent 2d8b0ab commit ccca89f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Trophy/Trophy.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Trophy extends Model

public function __construct(TrophyGroup $trophyGroup, int $id)
{
parent::__construct($trophyGroup->getHttpClient());

$this->trophyGroup = $trophyGroup;

$this->id = $id;
Expand Down Expand Up @@ -190,7 +192,7 @@ public function progressedDateTime(): string
*/
public function fetch(): object
{
return $this->get('trophy/v1/npCommunicationIds/' . $this->trophyGroup->title()->npCommunicationId() . '/trophyGroups/' . $this->trophyGroup->id() . '/trophies/' . $this->id(), [
return $this->get('trophy/v1/npCommunicationIds/' . $this->trophyGroup->title()->npCommunicationId() . '/trophies/' . $this->id(), [
'npServiceName' => $this->trophyGroup->title()->serviceName()
]);
}
Expand Down

0 comments on commit ccca89f

Please sign in to comment.