mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-09 14:34:56 +00:00
Code review comments
This commit is contained in:
parent
6e43c5348c
commit
d698ad7180
@ -68,13 +68,14 @@ public class BulkExportDaoSvc {
|
||||
public void setJobToStatus(String theJobUUID, BulkJobStatusEnum theStatus) {
|
||||
Optional<BulkExportJobEntity> oJob = myBulkExportJobDao.findByJobId(theJobUUID);
|
||||
if (!oJob.isPresent()) {
|
||||
ourLog.error("Job doesn't exist!");
|
||||
} else {
|
||||
ourLog.error("Job with UUID {} doesn't exist!", theJobUUID);
|
||||
return;
|
||||
}
|
||||
|
||||
ourLog.info("Setting job with UUID {} to {}", theJobUUID, theStatus);
|
||||
BulkExportJobEntity bulkExportJobEntity = oJob.get();
|
||||
bulkExportJobEntity.setStatus(theStatus);
|
||||
myBulkExportJobDao.save(bulkExportJobEntity);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user