Shadowblade911 / MrLancer-v2

ISC License
0 stars 0 forks source link

deleteBook reports that it deleted a book even when it doesn't exist #7

Closed jcotton42 closed 2 years ago

jcotton42 commented 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.