Convert Id to ID
This commit is contained in:
parent
f12114c296
commit
52b9882be9
17 changed files with 76 additions and 78 deletions
|
@ -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
|
||||
|
|
Reference in a new issue