Update to use pg/v10

This commit is contained in:
Las Zenow 2020-11-30 19:03:31 +00:00
parent 94c75b1d2a
commit 1536d97d8d
13 changed files with 449 additions and 98 deletions

View file

@ -81,7 +81,8 @@ func (db *pgDB) AddRawUser(name string, hpass []byte, salt []byte, role string)
Salt: salt,
Role: role,
}
return db.sql.Insert(&u)
_, err := db.sql.Model(&u).Insert()
return err
}
func (db *pgDB) GetRole(name string) (string, error) {