Skip to content

Commit

Permalink
correcting db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed May 15, 2024
1 parent 8069db8 commit 889ff1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbFlow/db.circulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func ConnectHackDatabase() *gorm.DB {
dbPort := os.Getenv("SUPABASE_DB_PORT")

// Construct the connection string
dsn := fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=disable TimeZone=Asia/Shanghai",
dsn := fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=require TimeZone=Asia/Shanghai",
dbHost, dbUsername, dbPassword, dbName, dbPort)

db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
Expand Down

0 comments on commit 889ff1b

Please sign in to comment.