Skip to content

Commit

Permalink
Fix error in readManyNotInList (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen authored Mar 24, 2020
1 parent d8dedec commit fd4336e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/data/books.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function read(bookId) {
}

function readManyNotInList(ids) {
return allBooks.find(book => !ids.includes(book))
return allBooks.filter(book => !ids.includes(book.id))
}

function query(search) {
Expand Down

0 comments on commit fd4336e

Please sign in to comment.