Skip to content

Commit

Permalink
chore: skip compose memo error
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Sep 18, 2023
1 parent e2b8292 commit b452d63
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/v1/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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))
}
}
Expand Down

0 comments on commit b452d63

Please sign in to comment.