Convert Id to ID

This commit is contained in:
Las Zenow 2016-07-30 07:59:30 -04:00
parent f12114c296
commit 52b9882be9
17 changed files with 76 additions and 78 deletions

View file

@ -29,7 +29,7 @@ func deleteHandler(h handler) {
if id == "" {
continue
}
book, err := h.db.GetBookId(id)
book, err := h.db.GetBookID(id)
if err != nil {
h.sess.Notify("Book not found!", "The book with id '"+id+"' is not there", "error")
continue
@ -59,7 +59,7 @@ func editHandler(h handler) {
notFound(h)
return
}
book, err := h.db.GetBookId(id)
book, err := h.db.GetBookID(id)
if err != nil {
notFound(h)
return
@ -199,7 +199,7 @@ func storeHandler(h handler) {
if id == "" {
continue
}
book, err := h.db.GetBookId(id)
book, err := h.db.GetBookID(id)
if err != nil {
h.sess.Notify("Book not found!", "The book with id '"+id+"' is not there", "error")
continue