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 ...@@ -254,7 +254,7 @@ func (s *APIV1Service) UpdateMemo(ctx context.Context, request *v1pb.UpdateMemoR
payload.Property = property payload.Property = property
update.Payload = payload update.Payload = payload
} else if path == "uid" { } else if path == "uid" {
update.UID = &request.Memo.Name update.UID = &request.Memo.Uid
if !util.UIDMatcher.MatchString(*update.UID) { if !util.UIDMatcher.MatchString(*update.UID) {
return nil, status.Errorf(codes.InvalidArgument, "invalid resource name") 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