deleting ssl mode

This commit is contained in:
areeqakbr 2025-03-10 11:15:36 +07:00
parent b7432f18ae
commit add133331d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ type infraManager struct {
}
func (im *infraManager) openConn() error {
dsn := fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=require TimeZone=Asia/Shanghai",
dsn := fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s TimeZone=Asia/Shanghai",
im.cfg.DBHost, im.cfg.DBUser, im.cfg.DBPass, im.cfg.DBName, im.cfg.DBPort)
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
if err != nil {