Skip to content

Commit

Permalink
Fixed incorrect PostgreSQL connection URI
Browse files Browse the repository at this point in the history
  • Loading branch information
daystram authored Jan 24, 2021
1 parent 58af170 commit 5c88bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func InitializeHandler() {
// Initialize DB
var db *gorm.DB
db, err = gorm.Open(postgres.Open(
fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable",
fmt.Sprintf("host=%s port=%d dbname=%s user=%s password=%s sslmode=disable",
config.AppConfig.DBHostname, config.AppConfig.DBPort, config.AppConfig.DBDatabase,
config.AppConfig.DBUsername, config.AppConfig.DBPassword),
), &gorm.Config{})
Expand Down

0 comments on commit 5c88bfb

Please sign in to comment.