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)
|
row := stmt.QueryRow(address)
|
||||||
u := &TownUser{}
|
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) {
|
if errors.Is(err, sql.ErrNoRows) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue