Rename to fit name pattern

Jens Pelzetter 2020-08-03 17:36:35 +02:00
parent d091c31d55
commit dccf466e4d
1 changed files with 2 additions and 2 deletions

View File

@ -282,10 +282,10 @@ export class UsersApiClient {
roleIdentifier: string | number roleIdentifier: string | number
): Promise<void> { ): Promise<void> {
try { try {
const groupParam = buildIdentifierParam(userIdentifier); const userParam = buildIdentifierParam(userIdentifier);
const roleParam = buildIdentifierParam(roleIdentifier); const roleParam = buildIdentifierParam(roleIdentifier);
const response: ApiResponse = await this.#apiClient.put( const response: ApiResponse = await this.#apiClient.put(
`${this.#USERS_API_PREFIX}/${groupParam}/roles/${roleParam}` `${this.#USERS_API_PREFIX}/${userParam}/roles/${roleParam}`
); );
if (response.ok) { if (response.ok) {
return; return;