forked from tildetown/town
ref
parent
2a966bf842
commit
5c6f4cce19
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue