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

@ -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)