mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: postgres connection (resolve #70)
This commit is contained in:
parent
8efc3854ab
commit
1224024913
@ -121,8 +121,7 @@ func (c *dbConfig) GetDialector() gorm.Dialector {
|
||||
})
|
||||
case "postgres":
|
||||
return postgres.New(postgres.Config{
|
||||
DriverName: c.Dialect,
|
||||
DSN: mysqlConnectionString(c),
|
||||
DSN: postgresConnectionString(c),
|
||||
})
|
||||
case "sqlite3":
|
||||
return sqlite.Open(sqliteConnectionString(c))
|
||||
|
Loading…
Reference in New Issue
Block a user