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

This commit is contained in:
Roman Lomonosov 2024-06-26 02:18:00 +03:00 committed by GitHub
parent 9b090d909e
commit b923988fd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")
}