Changed update officeRole to update to handle both role and update role update

This commit is contained in:
Vins 2024-10-09 08:34:21 +02:00
parent edcdb1a15c
commit 613fba23b8

View File

@ -24,7 +24,7 @@ export default class UsersService extends BaseService {
* @throws {Error} If user modification failed * @throws {Error} If user modification failed
*/ */
public async update(uid: string, userEntity: User): Promise<Users> { public async update(uid: string, userEntity: User): Promise<Users> {
return this.userRepository.updateOfficeRole(uid, userEntity); return this.userRepository.update(uid, userEntity);
} }
/** /**