Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/bulk/job/JobExistsParameterValidator.java
Co-authored-by: Ken Stevens <khstevens@gmail.com>
This commit is contained in:
parent
b7cea688f6
commit
d90987368a
|
@ -21,7 +21,7 @@ public class JobExistsParameterValidator implements JobParametersValidator {
|
||||||
public void validate(JobParameters theJobParameters) throws JobParametersInvalidException {
|
public void validate(JobParameters theJobParameters) throws JobParametersInvalidException {
|
||||||
String jobUUID = theJobParameters.getString("jobUUID");
|
String jobUUID = theJobParameters.getString("jobUUID");
|
||||||
if (StringUtils.isBlank(jobUUID)) {
|
if (StringUtils.isBlank(jobUUID)) {
|
||||||
throw new JobParametersInvalidException("You did not pass a jobUUID to this job!");
|
throw new JobParametersInvalidException("Missing jobUUID job parameter");
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<BulkExportJobEntity> oJob = myBulkExportJobDao.findByJobId(jobUUID);
|
Optional<BulkExportJobEntity> oJob = myBulkExportJobDao.findByJobId(jobUUID);
|
||||||
|
|
Loading…
Reference in New Issue