Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darleet committed May 28, 2024
1 parent 63fcde3 commit 246a538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ func (s *Server) resolverPG() http.Handler {
if err != nil {
s.log.Fatal(err)
}
repo := pg.NewRepository(nil)
s.log.Info("Postgres connected")

repo := pg.NewRepository(pool)
res := resolver.NewRootResolvers(
s.log,
article.NewUsecase(repo),
Expand Down

0 comments on commit 246a538

Please sign in to comment.