Commit 5d69c51e authored by Khai Yuan ​Liew's avatar Khai Yuan ​Liew

[AFP-60] Renamed bulkSearch methods

parent 30c2d8ad
......@@ -42,7 +42,7 @@ public class PromotionsController {
@PostMapping("/bulkSearch")
public ResponseEntity<Flux<PromotionDto>> bulkSearchPromotionsByItemSku(@RequestBody List<String> skus){
return ResponseEntity.ok(promotionService.bulkSearchSKU(skus));
return ResponseEntity.ok(promotionService.bulkSearchSku(skus));
}
@PutMapping("/{promoId}")
......
......@@ -27,7 +27,7 @@ public class PromotionService {
return promotionRepository.findByProductSku(sku).map(PromotionDto::generateDtoFromPromotion);
}
public Flux<PromotionDto> bulkSearchSKU(List<String> skus){
public Flux<PromotionDto> bulkSearchSku(List<String> skus){
return Flux.fromIterable(skus)
.flatMap(sku -> findPromotionsByProductSku(sku));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment