Convert Id to ID
This commit is contained in:
parent
f12114c296
commit
52b9882be9
17 changed files with 76 additions and 78 deletions
|
@ -183,7 +183,7 @@ func openReadEpub(h handler) (*epubgo.Epub, database.Book) {
|
|||
if id == "" {
|
||||
return nil, book
|
||||
}
|
||||
book, err := h.db.GetBookId(id)
|
||||
book, err := h.db.GetBookID(id)
|
||||
if err != nil {
|
||||
return nil, book
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ func openReadEpub(h handler) (*epubgo.Epub, database.Book) {
|
|||
}
|
||||
}
|
||||
|
||||
f, err := h.store.Get(book.Id, epubFile)
|
||||
f, err := h.store.Get(book.ID, epubFile)
|
||||
if err != nil {
|
||||
return nil, book
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ func contentHandler(h handler) {
|
|||
}
|
||||
|
||||
func openEpubFile(h handler, id string, file string) error {
|
||||
book, err := h.db.GetBookId(id)
|
||||
book, err := h.db.GetBookID(id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Reference in a new issue