diff --git a/src/app/features/moderation/services/moderators.service.ts b/src/app/features/moderation/services/moderators.service.ts index 7c32d8461..420251188 100644 --- a/src/app/features/moderation/services/moderators.service.ts +++ b/src/app/features/moderation/services/moderators.service.ts @@ -85,7 +85,7 @@ export class ModeratorsService { } searchUsers(value: string, page = 1): Observable> { - const baseUrl = `${this.apiUrl}/users/?filter[full_name]=${value}&page=${page}`; + const baseUrl = `${this.apiUrl}/search/users/?q=${value}*&page=${page}`; return this.jsonApiService .get>(baseUrl) diff --git a/src/app/shared/services/contributors.service.ts b/src/app/shared/services/contributors.service.ts index 97c0fdcfb..c441b9ca0 100644 --- a/src/app/shared/services/contributors.service.ts +++ b/src/app/shared/services/contributors.service.ts @@ -95,8 +95,7 @@ export class ContributorsService { } searchUsers(value: string, page = 1): Observable> { - const baseUrl = `${this.apiUrl}/users/?filter[full_name]=${value}&page=${page}`; - + const baseUrl = `${this.apiUrl}/search/users/?q=${value}*&page=${page}`; return this.jsonApiService .get>(baseUrl) .pipe(map((response) => ContributorsMapper.getPaginatedUsers(response)));