Skip to content

Commit ee8d04b

Browse files
etzanismr-c
authored andcommitted
1 parent 73c2704 commit ee8d04b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/commonwl/view/workflow/WorkflowService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public Page<Workflow> searchPageOfWorkflows(String searchString, Pageable pageab
114114
* @return The model for the workflow
115115
*/
116116
public Workflow getWorkflow(String id) {
117-
return workflowRepository.findOne(id);
117+
return workflowRepository.findById(id).orElse(null);
118118
}
119119

120120
/**
@@ -123,7 +123,7 @@ public Workflow getWorkflow(String id) {
123123
* @return The model for the queued workflow
124124
*/
125125
public QueuedWorkflow getQueuedWorkflow(String id) {
126-
return queuedWorkflowRepository.findOne(id);
126+
return queuedWorkflowRepository.findById(id).orElse(null);
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)