Skip to content

Commit 8fef21e

Browse files
authored
Merge pull request #7 from ozontech/0-async-search-fix-get-list
fix(async search): fix list method
2 parents 456c8da + 0a79bba commit 8fef21e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/pkg/service/async_searches/service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ func (s *Service) GetAsyncSearchesList(
150150
searchIDs = append(searchIDs, search.SearchID)
151151
}
152152

153+
if len(searchIDs) == 0 {
154+
return &seqapi.GetAsyncSearchesListResponse{}, nil
155+
}
156+
153157
resp, err := s.seqDB.GetAsyncSearchesList(ctx, req, searchIDs)
154158
if err != nil {
155159
return nil, fmt.Errorf("failed to get async searches list from seq-db: %w", err)

0 commit comments

Comments
 (0)