Commit b452d63f authored by Steven's avatar Steven

chore: skip compose memo error

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