Skip to content

Commit afa0686

Browse files
committed
Drop deprecated sample find method
1 parent bdc6af5 commit afa0686

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project-management/src/main/java/life/qbic/projectmanagement/application/api/AsyncProjectServiceImpl.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public Flux<Sample> getSamplesForBatch(String projectId, String batchId)
141141
public Mono<Sample> findSample(String projectId, String sampleId) {
142142
return Mono.defer(() -> {
143143
try {
144-
return Mono.justOrEmpty(sampleInfoService.findSample(SampleId.parse(sampleId)));
144+
return Mono.justOrEmpty(
145+
sampleInfoService.findSample(ProjectId.parse(projectId), SampleId.parse(sampleId)));
145146
} catch (org.springframework.security.access.AccessDeniedException e) {
146147
log.error(ACCESS_DENIED, e);
147148
return Mono.error(new AccessDeniedException(ACCESS_DENIED));

0 commit comments

Comments
 (0)