Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
updated key for duplicate request for localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Taniya-eGov authored Sep 11, 2024
1 parent 59e21c5 commit 7fc72bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fc72bd

Please sign in to comment.