params.getName().ifPresent(user::setName);
return userRepository.save(user);
}
@Override
public User updateMe(UserParams params) {
<BUG>User user = securityContextService.currentUser();

return update(user, params);
}</BUG>
@Override

params.getName().ifPresent(user::setName);
return userRepository.save(user);
}
@Override
public User updateMe(UserParams params) {
return securityContextService.currentUser()
.map(u -> update(u, params))
.orElseThrow(RuntimeException::new);
}
@Override
