From fd4336e77cdc6059c8796e2d6f9ad5a4f4faa4fe Mon Sep 17 00:00:00 2001 From: onemen Date: Tue, 24 Mar 2020 20:04:26 +0200 Subject: [PATCH] Fix error in readManyNotInList (#23) --- src/test/data/books.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/data/books.js b/src/test/data/books.js index c93b4ed0a..fc09df7b1 100644 --- a/src/test/data/books.js +++ b/src/test/data/books.js @@ -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) {