Skip to content

Commit

Permalink
Update JobLauncherController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-mohammed authored Sep 12, 2024
1 parent aee93c2 commit 849a7ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ public ResponseEntity<BatchJobResponse> launchRegenerateSchoolReportsBatch(@Requ

try {
String studentSearchData = jsonTransformer.marshall(searchRequest);
if(searchRequest != null) {
builder.addString(SEARCH_REQUEST, jsonTransformer.marshall(searchRequest));
if(studentSearchData != null) {
builder.addString(SEARCH_REQUEST, studentSearchData);
}
response.setJobParameters(studentSearchData);
JobExecution jobExecution = asyncJobLauncher.run(jobRegistry.getJob(REGENERATE_SCHOOL_REPORTS_BATCH_JOB), builder.toJobParameters());
Expand Down

0 comments on commit 849a7ed

Please sign in to comment.