Skip to content

Commit

Permalink
Merge pull request #3 from anna-money/set-limit
Browse files Browse the repository at this point in the history
set limit to prevent "username with email %s not found"
  • Loading branch information
vladimir-kozyrev authored Jan 25, 2023
2 parents bd3ef16 + 24d9cb9 commit feeb200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/teammate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func parseUser(respBody string) (*User, error) {
}

func (c *Client) GetUsernameByEmail(ctx context.Context, email string) (string, error) {
respBody, _, err := c.Get(ctx, "GET", "/teammates")
respBody, _, err := c.Get(ctx, "GET", "/teammates?limit=10000")
if err != nil {
return "", err
}
Expand Down

0 comments on commit feeb200

Please sign in to comment.