Skip to content

Commit

Permalink
fix: complete promise in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
halber committed Dec 18, 2023
1 parent 9f4bcb9 commit d7ad4ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ public void readEntityCollection(ODataRequest request, ODataResponse response, U
if (!expandExecuted) {
fetchNavigationTargetEntities(resourceParts.get(1), foundEntity, vertx, routingContext)
.onComplete(responsePromise);
} else {
responsePromise.complete(List.of(foundEntity));
}
} catch (ODataApplicationException e) {
processPromise.fail(e);
Expand Down

0 comments on commit d7ad4ce

Please sign in to comment.