Skip to content

Commit

Permalink
fix: can't change memo UID (#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomik authored Jun 25, 2024
1 parent 9b090d9 commit b923988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/router/api/v1/memo_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b923988

Please sign in to comment.