chore: tweak memo definition

This commit is contained in:
Steven
2024-05-22 21:52:41 +08:00
parent e0600388b2
commit d3235f75f3
4 changed files with 452 additions and 428 deletions

View File

@ -797,6 +797,7 @@ func (s *APIV1Service) convertMemoFromStore(ctx context.Context, memo *store.Mem
memoMessage.Property = convertMemoPropertyFromStore(memo.Payload.Property)
}
if memo.ParentID != nil {
memoMessage.ParentId = memo.ParentID
parent := fmt.Sprintf("%s%d", MemoNamePrefix, *memo.ParentID)
memoMessage.Parent = &parent
}