Update database.go

This commit is contained in:
Dominic Renner 2019-03-06 18:18:40 +01:00 committed by GitHub
parent 5fd9faec2a
commit aeb692d616

View file

@ -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
}