}
// Marshal Update request here to return InvalidArgument to the API caller if it can't be marshaled.
reqAny, err := anypb.New(req)
if err != nil {
return serviceerror.NewInvalidArgumentf("unable to unmarshal request: %v", err)
}
prevState := u.setState(stateProvisionallyAdmitted)
eventStore.OnAfterCommit(func(context.Context) {
if u.state != stateProvisionallyAdmitted {
return