Skip to content

Commit

Permalink
Fix null service to call in schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisszmundy committed Sep 30, 2024
1 parent 0a4150c commit 348a3fa
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,19 @@ public ResponseEntity<Object> addSchedule(
useSignature
);
log.info("New schedule request for survey {} with encryption", surveyName);
scheduleApiPort.addSchedule(surveyName, serviceToCall, frequency, scheduleBeginDate, scheduleEndDate,
scheduleApiPort.addSchedule(surveyName,
serviceToCall == null ? ServiceToCall.MAIN : serviceToCall,
frequency,
scheduleBeginDate,
scheduleEndDate,
trustParameters);
}else{
log.info("New schedule request for survey {}", surveyName);
scheduleApiPort.addSchedule(surveyName, serviceToCall, frequency, scheduleBeginDate, scheduleEndDate,
scheduleApiPort.addSchedule(surveyName,
serviceToCall == null ? ServiceToCall.MAIN : serviceToCall,
frequency,
scheduleBeginDate,
scheduleEndDate,
null);
}

Expand Down

0 comments on commit 348a3fa

Please sign in to comment.