From 7fc72bd47d0229e39d3a27427618f223360fee89 Mon Sep 17 00:00:00 2001 From: Taniya-eGov <103186387+Taniya-eGov@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:45:39 +0530 Subject: [PATCH] updated key for duplicate request for localisation --- .../egov/wscalculation/service/WSCalculationServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/WSCalculationServiceImpl.java b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/WSCalculationServiceImpl.java index 243158483..7a4ec939e 100644 --- a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/WSCalculationServiceImpl.java +++ b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/WSCalculationServiceImpl.java @@ -406,7 +406,7 @@ public void generateBulkDemandForTenant(BulkDemand bulkDemand) { // Check for duplicate calls in the last configurable duration boolean isDuplicate = demandService.isDuplicateBulkDemandCall(tenantId, billingPeriod, durationAgo); if (isDuplicate) { - throw new CustomException("DUPLICATE_REQUEST", "A bulk demand generation for this tenant and billing Period was already requested in the last "+ duplicateHours +" hours."); + throw new CustomException("DEMAND_DUPLICATE_REQUEST", "A bulk demand generation for this tenant and billing Period was already requested in the last "+ duplicateHours +" hours."); } if(tenantId != null && tenantId.split("\\.").length >1) { demandService.generateBulkDemandForTenantId(bulkDemand);