Fix adding ShelfItem to Shelf

This commit is contained in:
Robbie Antenesse 2020-08-24 23:50:28 -06:00
parent bf78174691
commit 86c5a3bc45
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ class ShelfController {
} }
} }
const shelfItem = await shelf.addShelfItem({ bookId }).catch(err => err); const shelfItem = await shelf.createShelfItem({ bookId }).catch(err => err);
if (!shelfItem) { if (!shelfItem) {
return { return {