File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ type NewUser = {
45
45
type GetUserProfilesParams = {
46
46
pageSize : number
47
47
page : number
48
+ searchQuery ?: string
48
49
}
49
50
50
51
type GetUserProfilesResponseData = {
@@ -129,7 +130,7 @@ export class UserResource implements IRestResource {
129
130
}
130
131
async getUserProfiles ( params : GetUserProfilesParams ) : Promise < GetUserProfilesResponseData > {
131
132
return await fetchGet < GetUserProfilesResponse > (
132
- `${ this . client . apiBaseUrl } /users?page_size=${ params . pageSize } &page=${ params . page - 1 } ` ,
133
+ `${ this . client . apiBaseUrl } /users?page_size=${ params . pageSize } &page=${ params . page - 1 } ${ params . searchQuery ? "&search=" + params . searchQuery : "" } ` ,
133
134
{
134
135
"Authorization" : `Bearer ${ this . client . authToken } ` ,
135
136
"Content-Type" : "application/json"
You can’t perform that action at this time.
0 commit comments