command for moon rental worth

This commit is contained in:
2021-06-19 02:31:15 -05:00
parent c70999100b
commit d4214ee4bf
6 changed files with 103 additions and 21 deletions

View File

@@ -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;
}
}

View File

@@ -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();