ref
This commit is contained in:
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…
x
Reference in New Issue
Block a user