Skip to content

Commit 045255a

Browse files
Duplicate records (#83)
* If call disconnected call status open * Duplicate save issue
1 parent 05e8236 commit 045255a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/com/iemr/ecd/service/call_conf_allocation/CallAllocationImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private String allocateMotherRecordsAssociates(RequestCallAllocationDTO callAllo
147147
callCountPointer++;
148148
}
149149
}
150-
150+
outboundCallsRepo.saveAll(outBoundCallList);
151151
} else {
152152
List<MotherRecord> motherRecords = motherRecordRepo.getMotherRecordForAllocation(
153153
fromDate, toDate, callAllocationDto.getPhoneNoType(), totalRecordToAllocate);
@@ -190,8 +190,6 @@ private String allocateMotherRecordsAssociates(RequestCallAllocationDTO callAllo
190190
// Assuming updateIsAllocatedStatus updates all in one batch
191191
}
192192

193-
outboundCallsRepo.saveAll(outBoundCallList);
194-
195193
Map<String, Object> responseMap = new HashMap<>();
196194
responseMap.put("response", outBoundCallList.size() + " mother record(s) allocated successfully");
197195

0 commit comments

Comments
 (0)