Skip to content

Commit

Permalink
fix: Update converted resolve result.
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed May 20, 2022
1 parent 71e0757 commit 019ab8e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,14 @@ private ResolveResult resolveOrResolveRepresentation(String didString, Map<Strin

// done

if (log.isInfoEnabled()) log.info("Current resolve result: " + resolveResult);

resolveResult.updateConversion();
resolveResult = resolveRepresentation ? resolveResult.toResolveRepresentationResult(accept) : resolveResult.toResolveDataModelResult();

if (log.isInfoEnabled()) log.info("Final resolve result: " + resolveResult);

return resolveRepresentation ? resolveResult.toResolveRepresentationResult(accept) : resolveResult.toResolveDataModelResult();
return resolveResult;
}

public ResolveResult resolveOrResolveRepresentationWithDrivers(DID did, Map<String, Object> resolutionOptions, boolean resolveRepresentation) throws ResolutionException {
Expand Down

0 comments on commit 019ab8e

Please sign in to comment.