chore: skip compose memo error

This commit is contained in:
Steven 2023-09-18 22:41:49 +08:00
parent e2b82929ab
commit b452d63fa6

View file

@ -797,7 +797,6 @@ func (s *APIV1Service) convertMemoFromStore(ctx context.Context, memo *store.Mem
} else {
memoResponse.CreatorName = user.Username
}
memoResponse.CreatorUsername = user.Username
// Compose display ts.
@ -822,10 +821,7 @@ func (s *APIV1Service) convertMemoFromStore(ctx context.Context, memo *store.Mem
resource, err := s.Store.GetResource(ctx, &store.FindResource{
ID: &resourceID,
})
if err != nil {
return nil, err
}
if resource != nil {
if resource != nil && err == nil {
resourceList = append(resourceList, convertResourceFromStore(resource))
}
}