Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
fix(ui): fix dbconfig env var parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyosodo committed Mar 12, 2024
1 parent 4e11a7c commit 5de08cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func main() {
oauthProvider := google.NewProvider(oauthConfig)

dbConfig := postgres.Config{}
if err := env.Parse(&cfg); err != nil {
if err := env.Parse(&dbConfig); err != nil {
log.Fatalf("failed to load database configuration : %s", err.Error())
}
db, err := postgres.Setup(dbConfig, *repo.Migration())
Expand Down

0 comments on commit 5de08cd

Please sign in to comment.