Try this method:
await this. userRepository.update( user.id , user );const updatedUser = await this.repository.findOne(user.id);