Fixed Build
the build was successful Details

This commit is contained in:
konrad 2017-11-08 10:57:38 +01:00 committed by kolaente
parent 64dd0ce2d0
commit 14b7a42d32
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ func AddBook(book Book) (newBook Book, err error) {
}
// Get the newly inserted book
newBook, _, err = GetBookById(book.ID)
newBook, _, err = GetBookByID(book.ID)
return newBook, err
}

View File

@ -20,7 +20,7 @@ func BookDelete(c echo.Context) error {
}
// Check if the book exists
_, exists, err := models.GetBookById(bookID)
_, exists, err := models.GetBookByID(bookID)
if err != nil {
return c.JSON(http.StatusInternalServerError, models.Message{"Could get book"})

View File

@ -19,7 +19,7 @@ func BookShow(c echo.Context) error {
bookID, err := strconv.ParseInt(book, 10, 64)
// Get book infos
bookInfo, exists, err := models.GetBookById(bookID)
bookInfo, exists, err := models.GetBookByID(bookID)
if err != nil {
return c.JSON(http.StatusInternalServerError, models.Message{"Could not get book infos"})