Skip to content

Commit 889ff1b

Browse files
committed
correcting db connection
1 parent 8069db8 commit 889ff1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbFlow/db.circulation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func ConnectHackDatabase() *gorm.DB {
1717
dbPort := os.Getenv("SUPABASE_DB_PORT")
1818

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

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

0 commit comments

Comments
 (0)