Skip to content

Commit

Permalink
🐛 Fixed #43
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreminiom committed May 24, 2021
1 parent f78e051 commit 78758e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jira/userSearch.go
Expand Up @@ -81,7 +81,7 @@ func (u *UserSearchService) Do(ctx context.Context, accountID, query string, sta
}

if len(query) != 0 {
params.Add("query", accountID)
params.Add("query", query)
}

var endpoint = fmt.Sprintf("rest/api/3/user/search?%v", params.Encode())
Expand Down
2 changes: 1 addition & 1 deletion jira/userSearch_test.go
Expand Up @@ -205,7 +205,7 @@ func TestUserSearchService_Do(t *testing.T) {
maxResults: 50,
mockFile: "./mocks/search-users.json",
wantHTTPMethod: http.MethodGet,
endpoint: "/rest/api/3/user/search?accountId=594b47b5-c774-4d51-9ee8-b604013e9d9a&maxResults=50&query=594b47b5-c774-4d51-9ee8-b604013e9d9a&startAt=0",
endpoint: "/rest/api/3/user/search?accountId=594b47b5-c774-4d51-9ee8-b604013e9d9a&maxResults=50&query=charlie&startAt=0",
context: context.Background(),
wantHTTPCodeReturn: http.StatusOK,
wantErr: false,
Expand Down

0 comments on commit 78758e8

Please sign in to comment.