You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use gr.addBookToShelf() by keeping getting the error You have not passed shelfName. I used the default shelf, read and have tried other shelves such as to-read but the promise keeps being rejected.
I noticed there was a small typo in the readme. It should be gr.addBookToShelf() rather than gr.addBooksToShelf() which caught me out.
app.get('/book/add',function(req,res){varaddbook=gr.addBookToShelf({bookID: req.query.id,shelfName: "read"});addbook.then(function(result){console.log(result);res.redirect("/");}).catch(function(err){console.log("Adding book rejected"+err);});});
I'm trying to use
gr.addBookToShelf()
by keeping getting the errorYou have not passed shelfName
. I used the default shelf, read and have tried other shelves such as to-read but the promise keeps being rejected.I noticed there was a small typo in the readme. It should be
gr.addBookToShelf()
rather thangr.addBooksToShelf()
which caught me out.Git Branch
The text was updated successfully, but these errors were encountered: