Fixed Build
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
64dd0ce2d0
commit
14b7a42d32
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"})
|
||||
|
|
|
@ -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"})
|
||||
|
|
Loading…
Reference in New Issue