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,14 +68,15 @@ 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);
|
|
||||||
BulkExportJobEntity bulkExportJobEntity = oJob.get();
|
|
||||||
bulkExportJobEntity.setStatus(theStatus);
|
|
||||||
myBulkExportJobDao.save(bulkExportJobEntity);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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