From 4e7d2ddc585b7aadd30cc2e0d303a280fde3c532 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 27 Feb 2022 11:03:10 -0600 Subject: [PATCH] Fix:Quick match requiring cover --- server/controllers/BookController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/BookController.js b/server/controllers/BookController.js index 5a50f638..0b05df04 100644 --- a/server/controllers/BookController.js +++ b/server/controllers/BookController.js @@ -264,7 +264,7 @@ class BookController { return res.sendStatus(403) } var audiobook = this.db.audiobooks.find(a => a.id === req.params.id) - if (!audiobook || !audiobook.book.cover) return res.sendStatus(404) + if (!audiobook) return res.sendStatus(404) // Check user can access this audiobooks library if (!req.user.checkCanAccessLibrary(audiobook.libraryId)) {