mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-10 06:55:07 +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) {
|
public void setJobToStatus(String theJobUUID, BulkJobStatusEnum theStatus) {
|
||||||
Optional<BulkExportJobEntity> oJob = myBulkExportJobDao.findByJobId(theJobUUID);
|
Optional<BulkExportJobEntity> oJob = myBulkExportJobDao.findByJobId(theJobUUID);
|
||||||
if (!oJob.isPresent()) {
|
if (!oJob.isPresent()) {
|
||||||
ourLog.error("Job doesn't exist!");
|
ourLog.error("Job with UUID {} doesn't exist!", theJobUUID);
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ourLog.info("Setting job with UUID {} to {}", theJobUUID, theStatus);
|
ourLog.info("Setting job with UUID {} to {}", theJobUUID, theStatus);
|
||||||
BulkExportJobEntity bulkExportJobEntity = oJob.get();
|
BulkExportJobEntity bulkExportJobEntity = oJob.get();
|
||||||
bulkExportJobEntity.setStatus(theStatus);
|
bulkExportJobEntity.setStatus(theStatus);
|
||||||
myBulkExportJobDao.save(bulkExportJobEntity);
|
myBulkExportJobDao.save(bulkExportJobEntity);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user