Skip to content

Commit

Permalink
Set image-url Certainly in etc brand (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
inh2613 authored Nov 14, 2023
2 parents d6c8a33 + 3e0172c commit 606eb7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ public Mono<VoucherSaveRequestDto> handleGptResponse(VoucherAutoSaveRequestDto v

public Mono<VoucherSaveRequestDto> handleSearchResponse(VoucherSaveRequestDto voucherSaveRequestDto, String username, String filename) {
return searchService.search(createQuery(productNameProcessor.preprocessing(voucherSaveRequestDto))).flatMap(searchResponseDto -> {
voucherSaveRequestDto.setImageUrl(filename);
try {
String brandName = searchResponseDto.getHits().getHitsList().get(0).getSource().getBrandName();
String productName = searchResponseDto.getHits().getHitsList().get(0).getSource().getProductName();
voucherSaveRequestDto.setBrandName(brandName);
voucherSaveRequestDto.setProductName(productName);
voucherSaveRequestDto.setImageUrl(filename);
System.out.println("Search response");
System.out.println(brandName);
System.out.println(productName);
Expand Down

0 comments on commit 606eb7f

Please sign in to comment.