Skip to content

Commit

Permalink
fix:repo remote might fail when mapping rendering api, use json mappe…
Browse files Browse the repository at this point in the history
…r instead of api mapping
  • Loading branch information
torsten-simon committed Nov 14, 2024
1 parent 65d6aac commit 740a573
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public Response getDetailsSnippetWithParameters(
}

if(remote != null) {
org.edu_sharing.generated.repository.backend.services.rest.client.model.RenderingDetailsEntry entity = (org.edu_sharing.generated.repository.backend.services.rest.client.model.RenderingDetailsEntry) RepoProxyFactory.getRepoProxy().getDetailsSnippetWithParameters(remote.getRepository(), remote.getNodeId(), nodeVersion, displayMode, parameters, req).getEntity();
return Response.status(Response.Status.OK).entity(entity).build();
return RepoProxyFactory.getRepoProxy().getDetailsSnippetWithParameters(remote.getRepository(), remote.getNodeId(), nodeVersion, displayMode, parameters, req);
} else {
RenderingDetails detailsSnippet = new RenderingDao(repoDao).getDetails(node, nodeVersion, displayMode, parameters);
if(detailsSnippet.getException() != null) {
Expand Down

0 comments on commit 740a573

Please sign in to comment.