forked from MirrorHub/mautrix-whatsapp
Update database.go
This commit is contained in:
parent
5fd9faec2a
commit
aeb692d616
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ type Database struct {
|
|||
}
|
||||
|
||||
func New(file string) (*Database, error) {
|
||||
connStr := "postgres://synapse:changeme@db/whatsapp?sslmode=disable"
|
||||
conn, err := sql.Open("postgres", connStr)
|
||||
conn, err := sql.Open("postgres", file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue