mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
server: migrate checkHash to clientGatewayService
This commit is contained in:
@@ -85,17 +85,6 @@ const client = {
|
||||
settings.set(user, {id: 'startTorrentsOnLoad', data: start});
|
||||
},
|
||||
|
||||
checkHash(user, services, {hashes}, callback) {
|
||||
const request = new ClientRequest(user, services);
|
||||
|
||||
request.checkHash(hashes);
|
||||
request.onComplete((response, error) => {
|
||||
services.torrentService.fetchTorrentList();
|
||||
callback(response, error);
|
||||
});
|
||||
request.send();
|
||||
},
|
||||
|
||||
downloadFiles(user, services, hash, fileString, res) {
|
||||
try {
|
||||
const selectedTorrent = services.torrentService.getTorrent(hash);
|
||||
|
||||
Reference in New Issue
Block a user