Skip to content

Commit

Permalink
fix db connection on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Drumato <[email protected]>
  • Loading branch information
Drumato committed Oct 31, 2023
1 parent c38839d commit a7f1fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TAG=isupipe:latest
build:
$(BUILD) -o $(DESTDIR)/isupipe -ldflags "-s -w"

.PHONY: build
.PHONY: docker_image
docker_image: clean build
$(DOCKER_BUILD) -t $(TAG) . $(DOCKER_BUILD_OPTS)

Expand Down
2 changes: 1 addition & 1 deletion webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func connectDB(logger echo.Logger) (*sqlx.DB, error) {
return nil, err
}

return db, fmt.Errorf("failed to connect to MySQL")
return db, nil
}

func initializeHandler(c echo.Context) error {
Expand Down

0 comments on commit a7f1fdf

Please sign in to comment.