server: torrentService: normalize case of hash during torrent lookup

This commit is contained in:
Winter
2022-08-11 22:13:30 -04:00
committed by Jesse Chan
parent 161cc7af0d
commit f5f7ba7ff1

View File

@@ -78,7 +78,7 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
}; };
getTorrent(hash: TorrentProperties['hash']) { getTorrent(hash: TorrentProperties['hash']) {
return this.torrentListSummary.torrents[hash]; return this.torrentListSummary.torrents[hash.toUpperCase()];
} }
getTorrentList() { getTorrentList() {