Skip to content

Commit 9ebf3e5

Browse files
committed
Fix fetch member by username URL
1 parent 2a79523 commit 9ebf3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/MembersHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function fetch(int $member_id): APIResponse {
3333
* @return APIResponse The parsed API response.
3434
*/
3535
function fetchByName(string $username): APIResponse {
36-
return $this->wrapper->get(sprintf("members/username/%s", $username));
36+
return $this->wrapper->get(sprintf("members/usernames/%s", $username));
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)