trunk
vilmibm 2023-10-24 05:16:51 +00:00
parent 2a966bf842
commit 5c6f4cce19
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func UserForEmail(db *sql.DB, address string) (*TownUser, error) {
}
row := stmt.QueryRow(address)
u := &TownUser{}
if err = row.Scan(u.ID, u.Username); err != nil {
if err = row.Scan(&u.ID, &u.Username); err != nil {
if errors.Is(err, sql.ErrNoRows) {
return nil, nil
}