24 lines
615 B
PHP
24 lines
615 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Console\Commands;
|
||
|
|
|
||
|
|
use App\Jobs\Billing\BalancePreflightSweepJob;
|
||
|
|
use Illuminate\Console\Command;
|
||
|
|
|
||
|
|
final class BillingPreflightSweepCommand extends Command
|
||
|
|
{
|
||
|
|
protected $signature = 'billing:preflight-sweep';
|
||
|
|
|
||
|
|
protected $description = 'Ежедневный преfflight баланса — заморозка/разморозка тенантов (cut-off 18:00 MSK)';
|
||
|
|
|
||
|
|
public function handle(): int
|
||
|
|
{
|
||
|
|
(new BalancePreflightSweepJob)->handle();
|
||
|
|
$this->info('Преfflight sweep завершён.');
|
||
|
|
|
||
|
|
return self::SUCCESS;
|
||
|
|
}
|
||
|
|
}
|