Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: William <[email protected]>
  • Loading branch information
kwesidev committed Sep 22, 2023
1 parent e1598b3 commit 83ab55c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/auth_server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func initialize() {

databaseConfig := utilities.DatabaseConfig{
Host: os.Getenv("PG_HOST"),
Userame: os.Getenv("PG_USER"),
Username: os.Getenv("PG_USER"),
Password: os.Getenv("PG_PASSWORD"),
Port: os.Getenv("PG_PORT"),
Database: os.Getenv("PG_DB"),
Expand Down
6 changes: 3 additions & 3 deletions internal/utilities/database_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

type DatabaseConfig struct {
Host string
Userame string
Username string
Password string
Port string
Database string
Expand All @@ -22,15 +22,15 @@ func GetMainDatabaseConnection(config DatabaseConfig) (*sql.DB, error) {
sslConnectionString := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=verify-full sslrootcert=%s",
config.Host,
config.Port,
config.Userame,
config.Username,
config.Password,
config.Database,
config.Certificate,
)
normalConnectionString := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=disable",
config.Host,
config.Port,
config.Userame,
config.Username,
config.Password,
config.Database,
)
Expand Down

0 comments on commit 83ab55c

Please sign in to comment.