1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-24 08:22:42 +02:00

Fix apiEndpoint creation in UserService.Find

This commit is contained in:
Lev Zakharov 2019-01-14 14:48:03 +03:00 committed by Andy Grunwald
parent c74da16159
commit cbab0bba29

View File

@ -195,7 +195,7 @@ func (s *UserService) Find(property string, tweaks ...userSearchF) ([]User, *Res
queryString += param.name + "=" + param.value + "&"
}
apiEndpoint := fmt.Sprintf("/rest/api/2/user/search?" + queryString[:len(queryString)-1])
apiEndpoint := fmt.Sprintf("/rest/api/2/user/search?%s", queryString[:len(queryString)-1])
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
if err != nil {
return nil, nil, err