Convert Id to ID
This commit is contained in:
parent
f12114c296
commit
52b9882be9
17 changed files with 76 additions and 78 deletions
|
@ -32,7 +32,7 @@ const (
|
|||
|
||||
func coverHandler(h handler) {
|
||||
vars := mux.Vars(h.r)
|
||||
book, err := h.db.GetBookId(vars["id"])
|
||||
book, err := h.db.GetBookID(vars["id"])
|
||||
if err != nil {
|
||||
notFound(h)
|
||||
return
|
||||
|
@ -49,7 +49,7 @@ func coverHandler(h handler) {
|
|||
if vars["size"] == "small" {
|
||||
file = coverSmallFile
|
||||
}
|
||||
f, err := h.store.Get(book.Id, file)
|
||||
f, err := h.store.Get(book.ID, file)
|
||||
if err != nil {
|
||||
log.Error("Error while opening image: ", err)
|
||||
notFound(h)
|
||||
|
|
Reference in a new issue