Skip to content

Commit

Permalink
avniproject/avni-webapp#1300 | Fix /locations/search/findAsList to in…
Browse files Browse the repository at this point in the history
…clude titleLineage in response
  • Loading branch information
1t5j0y committed Sep 23, 2024
1 parent 7d54e5b commit 9e1d280
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ public Page<AddressLevelContractWeb> find(

@GetMapping(value = "locations/search/findAsList")
@ResponseBody
public List<LocationProjection> findAsList(
public List<AddressLevelContractWeb> findAsList(
@RequestParam(value = "title", defaultValue = "") String title,
@RequestParam(value = "typeId", required = false) Integer typeId) {
return locationRepository.findLocationProjectionByTitleIgnoreCaseAndTypeIdAsList(title, typeId);
return addressLevelService.addTitleLineageToLocation(locationRepository.findLocationProjectionByTitleIgnoreCaseAndTypeIdAsList(title, typeId));
}

@GetMapping(value = "/locations/search/findAllById")
Expand Down

0 comments on commit 9e1d280

Please sign in to comment.