update: announce

This commit is contained in:
HDVinnie
2022-08-09 16:21:38 -04:00
parent 169d04989e
commit 29d6b85c82
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class Kernel extends ConsoleKernel
$schedule->command('auto:softdelete_disabled_users')->daily();
$schedule->command('auto:recycle_claimed_torrent_requests')->daily();
$schedule->command('auto:correct_history')->daily();
$schedule->command('auto:sync_peers')->everyTenMinutes();
$schedule->command('auto:sync_peers')->everyFiveMinutes();
$schedule->command('auto:email-blacklist-update')->weekends();
$schedule->command('auto:reset_user_flushes')->daily();
$schedule->command('auto:stats_clients')->daily();
+1 -2
View File
@@ -468,8 +468,7 @@ class AnnounceController extends Controller
$event = \strtolower($queries['event']);
// Get The Current Peer
$peer = Peer::query()
->where('torrent_id', '=', $torrent->id)
$peer = $torrent->peers
->where('peer_id', $queries['peer_id'])
->where('user_id', '=', $user->id)
->first();