We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b97ce8c + 2d62d31 commit 2a071aeCopy full SHA for 2a071ae
day-08/api/src/main/java/com/bookstore/api/services/AuthorServiceImp.java
@@ -57,8 +57,9 @@ public void deleteOneAuthor(int id) {
57
58
@Override
59
public Set<Author> getAuthorsByIds(List<Integer> authorIds) {
60
-
61
- return null;
+ Set<Author> authors = new HashSet<>();
+ ids.forEach( id -> authors.add(getOneAuthor(id).getData()));
62
+ return authors;
63
}
64
65
0 commit comments