Closed jcotton42 closed 2 years ago
Call deleteBook with a book that doesn't exist and it will still say it deleted it. Looking at the docs for del() in knex it returns the number of affected rows. Quick testing shows that will be > 0 when there was a match.
deleteBook
del()
Call
deleteBook
with a book that doesn't exist and it will still say it deleted it. Looking at the docs fordel()
in knex it returns the number of affected rows. Quick testing shows that will be > 0 when there was a match.