Skip to content

Commit

Permalink
[MODORDERS-1218/MODORDERS-1219] Fix async issue for change instance c…
Browse files Browse the repository at this point in the history
…onnection (#1058)

* MODORDERS-1183. Introduce new error code for missed affiliations

* MODORDERS-1218/MODORDERS-1219. Fix async issue with changing instance connection
  • Loading branch information
SerhiiNosko authored Dec 4, 2024
1 parent a96c130 commit 6f79419
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 6f79419

Please sign in to comment.