Skip to content

Commit

Permalink
Refactor the method names
Browse files Browse the repository at this point in the history
  • Loading branch information
SooryaKumaranC-tw committed Apr 15, 2024
1 parent 1324ca4 commit cff31ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void handleEvent(IPDEvent event) {
List<String> taskNames = eventConfig.getTasks().stream()
.map(TaskDetail::getName)
.collect(Collectors.toList());
List<Task> rolloverTasks = taskService.getTasksByNameAndStatus(taskNames, FhirTask.TaskStatus.REQUESTED);
List<Task> rolloverTasks = taskService.searchTasks(taskNames, FhirTask.TaskStatus.REQUESTED);
List<FhirTaskRequestedPeriod> fhirTaskRequestedPeriods = new ArrayList<FhirTaskRequestedPeriod>();
for (Task task : rolloverTasks) {
if (task.getFhirTaskRequestedPeriod() != null) {
Expand All @@ -49,6 +49,6 @@ public void handleEvent(IPDEvent event) {
fhirTaskRequestedPeriods.add(fhirTaskRequestedPeriod);
}
}
taskRequestedPeriodDao.bulkUpdate(fhirTaskRequestedPeriods);
taskRequestedPeriodDao.update(fhirTaskRequestedPeriods);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void handleEvent(IPDEvent event) {
}
}
if(tasks.size() > 0){
taskService.bulkSaveTasks(tasks);
taskService.saveTask(tasks);
}
}

Expand Down

0 comments on commit cff31ac

Please sign in to comment.