From 849a7ed6ad943639c2da654d1f8a285e35372be9 Mon Sep 17 00:00:00 2001 From: Kamal Mohammed Date: Thu, 12 Sep 2024 22:17:58 +0530 Subject: [PATCH] Update JobLauncherController.java --- .../api/batchgraduation/controller/JobLauncherController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java index 8efbcd54..0d0b903d 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java @@ -518,8 +518,8 @@ public ResponseEntity 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());