Unverified Commit b923988f authored by Roman Lomonosov's avatar Roman Lomonosov Committed by GitHub

fix: can't change memo UID (#3621)

parent 9b090d90
......@@ -254,7 +254,7 @@ func (s *APIV1Service) UpdateMemo(ctx context.Context, request *v1pb.UpdateMemoR
payload.Property = property
update.Payload = payload
} else if path == "uid" {
update.UID = &request.Memo.Name
update.UID = &request.Memo.Uid
if !util.UIDMatcher.MatchString(*update.UID) {
return nil, status.Errorf(codes.InvalidArgument, "invalid resource name")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment