Skip to content

Commit

Permalink
ARKIV-267 Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oleanders committed Apr 23, 2024
1 parent 98c37f2 commit 585271e
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ public Mono<ResponseEntity<String>> getStatus(
@PathVariable String instanceId
) {
return authenticationMono.map(authentication ->
archiveCaseIdRequestService.getArchiveCaseId(
SourceApplicationAuthorizationUtil.getSourceApplicationId(authentication),
instanceId
)
.map(ResponseEntity::ok)
.orElse(ResponseEntity.notFound().build())
{
Long applicationId = SourceApplicationAuthorizationUtil.getSourceApplicationId(authentication);

log.debug("Get status for instance: {} in sourceApplication: {}", instanceId, applicationId);

return archiveCaseIdRequestService.getArchiveCaseId(applicationId, instanceId)
.map(ResponseEntity::ok)
.orElse(ResponseEntity.notFound().build());
}
);
}

Expand Down

0 comments on commit 585271e

Please sign in to comment.