Skip to content

Commit

Permalink
Fix user UUID mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisSaldabols committed Oct 9, 2024
1 parent 0e6fde5 commit 93d40e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ public JsonObject lookupUser(UserId userid) throws Exception {
return user;
String id = user.getString(Constants.ID);
user = gatherPatronData(user, id);
user.put("userUuid", id);
return user;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private LookupUserResponseData constructResponse(LookupUserInitiationData initDa
responseData.setUserId(this.retrieveBarcode(userDetails, requesterAgencyId));
UserId userUuid = new UserId();
userUuid.setUserIdentifierType(new UserIdentifierType("uuid"));
userUuid.setUserIdentifierValue(userDetails.getString("id"));
userUuid.setUserIdentifierValue(userDetails.getString("userUuid"));
responseData.getUserOptionalFields().setUserIds(List.of(userUuid));
}

Expand Down

0 comments on commit 93d40e5

Please sign in to comment.