Skip to content

Commit

Permalink
fix(mod-search): fix export of cql files
Browse files Browse the repository at this point in the history
- Fix

Closes: MSEARCH-762
  • Loading branch information
viacheslavpoliakov committed Jun 4, 2024
1 parent ea4c9e9 commit 45d45e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public void streamResourceIdsAsJson(CqlResourceIdsRequest request, OutputStream
processStreamToJson(outputStream, (json, counter) ->
streamResourceIds(request, ids -> {
counter.addAndGet(ids.size());
log.info("******* [streamResourceIdsAsJson:: IDS {}, resource: {}, tenant: {}]", ids.toString(), request.getResource(), request.getTenantId());
writeRecordIdsToOutputStream(ids, json);
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public ResponseEntity<Void> streamResourceIds(CqlResourceIdsRequest request, Str
httpServletResponse.setContentType(APPLICATION_JSON_VALUE);
resourceIdService.streamResourceIdsAsJson(request, httpServletResponse.getOutputStream());
}
log.info("*********** CONTENT_TYPE:: {}", httpServletResponse.getContentType());
return ResponseEntity.ok().build();
} catch (IOException e) {
throw new SearchServiceException("Failed to get output stream from response", e);
Expand Down

0 comments on commit 45d45e2

Please sign in to comment.