database: fix term count error
This commit is contained in:
parent
6c162f4ebc
commit
676c373356
|
@ -67,7 +67,7 @@ func (db *DB) SaveRoute(resp *routerpc.AddHostResponse) error {
|
|||
}
|
||||
|
||||
func (db *DB) GetRouteForHost(name string) (*Route, error) {
|
||||
rows, err := r.Table("routes").Filter(r.Row.Field("hostname", name).Or(r.Row.Field("onionhostname", name))).Run(db.s)
|
||||
rows, err := r.Table("routes").Filter(r.Row.Field("hostname", name)).Run(db.s)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue