Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
fix: issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Feb 8, 2023
1 parent 8dd2945 commit bec520b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Bootstrap() error {
return c.String(http.StatusOK, "OK")
})
e.GET("/health", func(c echo.Context) error {
if err := r.DB.Exec(context.Background(), "SELECT 1").Error; err != nil {
if err := r.DB.Exec(context.Background(), "SELECT 1"); err != nil {
return c.String(http.StatusInternalServerError, "DB error")
}

Expand Down

0 comments on commit bec520b

Please sign in to comment.