query:="SELECT id, display_name, display_color, created_at, disabled_at, previous_names, namechanged_at FROM users WHERE id = ?"
row:=_datastore.DB.QueryRow(query,id)
ifrow==nil{
log.Errorln(row)
returnnil
}
returngetUserFromRow(row)
}
// GetDisabledUsers will return back all the currently disabled users that are not API users.
funcGetDisabledUsers()[]*User{
query:="SELECT id, display_name, display_color, created_at, disabled_at, previous_names, namechanged_at FROM users WHERE disabled_at IS NOT NULL AND type IS NOT 'API'"