Skip to content

Commit

Permalink
Update InteractsWithAPI.php
Browse files Browse the repository at this point in the history
Fix GetKeyForEndPoint error
  • Loading branch information
colinhall17 committed May 29, 2020
1 parent 8c485d6 commit 67cb418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/InteractsWithAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getKey()
public function getKeyForEndPoint()
{
if($this->hasKey()){
return '/'.$this->getEndPoint();
return '/'.$this->getKey();
}
return;
}
Expand Down

0 comments on commit 67cb418

Please sign in to comment.