Skip to content

Commit

Permalink
MODORDERS-1106. New receiving tile erroneously links to pre-existing …
Browse files Browse the repository at this point in the history
…instance record
  • Loading branch information
SerhiiNosko committed Apr 26, 2024
1 parent 266a740 commit 04400ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public Future<String> convertToISBN13(String isbn, String endpoint, RequestConte
}

public Future<JsonObject> getEntryTypeId(String entryType, String entryTypeValue, RequestContext requestContext) {
RequestEntry requestEntry = new RequestEntry(INVENTORY_LOOKUP_ENDPOINTS.get(entryType))
.withQuery(entryTypeValue).withOffset(0).withLimit(1);
String endpoint = String.format(INVENTORY_LOOKUP_ENDPOINTS.get(entryType), encodeQuery(entryTypeValue));
RequestEntry requestEntry = new RequestEntry(endpoint);

return restClient.getAsJsonObject(requestEntry, requestContext)
.map(entries -> {
Expand Down

0 comments on commit 04400ea

Please sign in to comment.