Skip to content

Commit

Permalink
MODORDERS-1218/MODORDERS-1219. Fix async issue with changing instance…
Browse files Browse the repository at this point in the history
… connection
  • Loading branch information
SerhiiNosko committed Dec 4, 2024
1 parent e9ffe04 commit 5353f2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private Future<Void> updateInventoryInstanceInformation(PatchOrderLineRequest re

String newInstanceId = request.getReplaceInstanceRef().getNewInstanceId();
purchaseOrderLineService.getOrderLineById(lineId, requestContext)
.map(poLine -> {
.compose(poLine -> {
RequestEntry requestEntry = new RequestEntry(INVENTORY_LOOKUP_ENDPOINTS.get(INSTANCE_RECORDS_BY_ID_ENDPOINT)).withId(newInstanceId);
return restClient.getAsJsonObject(requestEntry, requestContext)
.compose(instanceRecord -> updatePoLineWithInstanceRecordInfo(instanceRecord, poLine, requestContext))
Expand Down

0 comments on commit 5353f2d

Please sign in to comment.