Skip to content

Commit cd96af4

Browse files
committed
fix: #3531
- close #3531
1 parent ba40d5c commit cd96af4

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

app/Console/Commands/FetchReleaseYears.php

-11
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ public function handle(): void
5151
->whereNull('release_year')
5252
->get();
5353

54-
$withyear = Torrent::withoutGlobalScope(ApprovedScope::class)
55-
->whereNotNull('release_year')
56-
->count();
57-
58-
$withoutyear = Torrent::withoutGlobalScope(ApprovedScope::class)
59-
->whereNull('release_year')
60-
->count();
61-
62-
$this->alert(sprintf('%s Torrents Already Have A Release Year Value!', $withyear));
63-
$this->alert(sprintf('%s Torrents Are Missing A Release Year Value!', $withoutyear));
64-
6554
foreach ($torrents as $torrent) {
6655
$meta = null;
6756

app/Console/Kernel.php

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ protected function schedule(Schedule $schedule): void
5656
$schedule->command('auto:refund_download')->daily();
5757
$schedule->command('auto:torrent_balance')->hourly();
5858
$schedule->command('auth:clear-resets')->daily();
59+
$schedule->command('fetch:release_years')->everyTenMinutes();
5960
//$schedule->command('auto:ban_disposable_users')->weekends();
6061
//$schedule->command('backup:clean')->daily();
6162
//$schedule->command('backup:run --only-db')->daily();

0 commit comments

Comments
 (0)