command for moon rental worth
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
use App\Jobs\Commands\MoonRental\UpdateAllianceMoonRentalWorth as UpdateWorth;
|
||||
|
||||
class ExecuteUpdateAllianceMoonRentalWorth extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'mr:worth';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Update alliance moon rental worth.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
UpdateWorth::dispatch();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@ class Kernel extends ConsoleKernel
|
||||
Commands\Structures\ExecuteFetchAllianceStructuresCommand::class,
|
||||
Commands\Structures\ExecuteFetchAllianceAssetsCommand::class,
|
||||
Commands\Files\ImportAllianceMoons::class,
|
||||
Commands\MiningTaxes\ExecuteUpdateAllianceMoonRentalWorth::class,
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -92,13 +93,6 @@ class Kernel extends ConsoleKernel
|
||||
$schedule->job(new MiningTaxesWeeklyInvoicing)
|
||||
->weeklyOn(1, '06:00')
|
||||
->withoutOverlapping();
|
||||
//$schedule->job(new ProcessAllianceMiningOperations)
|
||||
// ->weeklyOn(1, '06:00')
|
||||
// ->withChain([new SendMiningTaxesInvoices])
|
||||
// ->withoutOverlapping();
|
||||
//$schedule->job(new SendMiningTaxesInvoices)
|
||||
// ->weeklyOn(1, '06:00')
|
||||
// ->withoutOverlapping();
|
||||
$schedule->job(new ProcessMiningTaxesPayments)
|
||||
->hourlyAt('15')
|
||||
->withoutOverlapping();
|
||||
|
||||
Reference in New Issue
Block a user