Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
buckelieg committed Jul 17, 2024
1 parent e806ba0 commit fccbb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Stream<User> users = db.select("SELECT * FROM USERS")
// etc...
return attr;
})
.groupingBy(UserAttr::userId, Function::identity);
batchOfUsers.forEach(user -> user.addAttrs(attrs.getOrDefault(user.getId, Collections.emptyList())));
.groupingBy(UserAttr::userId, Function.identity());
batchOfUsers.forEach(user -> user.addAttrs(attrs.getOrDefault(user.getId(), Collections.emptyList())));
});
// stream of users objects will consist of updated (enriched) objects
```
Expand Down

0 comments on commit fccbb7a

Please sign in to comment.