Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix wrong totalhits value (#1103)

Cette révision appartient à :
tomleb 2017-07-03 21:43:09 -04:00 révisé par ewhal
Parent fdff3ac019
révision 2319b67fef
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -248,7 +248,7 @@ func (p *TorrentParam) Find(client *elastic.Client) (int64, []model.Torrent, err
log.Infof("Cannot unmarshal elasticsearch torrent: %s", err)
}
}
return torrentCount, torrents, nil
return result.TotalHits(), torrents, nil
}