diff --git a/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesLedgersCommand.php b/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesLedgersCommand.php index 5e5c86281..dc9ee0935 100644 --- a/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesLedgersCommand.php +++ b/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesLedgersCommand.php @@ -4,7 +4,7 @@ namespace App\Console\Commands\MiningTaxes; use Illuminate\Console\Command; -use App\Jobs\Commands\MiningTaxes\PreFetchMiningTaxesLedgers as PreFetch; +use App\Jobs\Commands\MiningTaxes\Ledgers\PreFetchMiningTaxesLedgers as PreFetch; class ExecuteMiningTaxesLedgersCommand extends Command { @@ -39,7 +39,7 @@ class ExecuteMiningTaxesLedgersCommand extends Command */ public function handle() { - PreFetch::dispatch()->onQueue('miningtaxes'); + PreFetch::dispatch(); return 0; } diff --git a/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesObserversCommand.php b/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesObserversCommand.php index 4bb0de2f1..822104ea0 100644 --- a/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesObserversCommand.php +++ b/app/Console/Commands/MiningTaxes/ExecuteMiningTaxesObserversCommand.php @@ -39,7 +39,7 @@ class ExecuteMiningTaxesObserversCommand extends Command */ public function handle() { - FetchObservers::dispatch()->onQueue('miningtaxes'); + FetchObservers::dispatch(); return 0; } diff --git a/app/Console/Commands/MiningTaxes/ExecuteProcesssMiningTaxesPaymentsCommand.php b/app/Console/Commands/MiningTaxes/ExecuteProcesssMiningTaxesPaymentsCommand.php index f3afe6537..9097ef03f 100644 --- a/app/Console/Commands/MiningTaxes/ExecuteProcesssMiningTaxesPaymentsCommand.php +++ b/app/Console/Commands/MiningTaxes/ExecuteProcesssMiningTaxesPaymentsCommand.php @@ -39,7 +39,7 @@ class ExecuteProcesssMiningTaxesPaymentsCommand extends Command */ public function handle() { - PMTP::dispatch()->onQueue('miningtaxes'); + PMTP::dispatch(); return 0; } diff --git a/app/Console/Commands/MiningTaxes/ExecuteSendMiningTaxesInvoiceCommand.php b/app/Console/Commands/MiningTaxes/ExecuteSendMiningTaxesInvoiceCommand.php index 11eac6a05..2a2ff9fda 100644 --- a/app/Console/Commands/MiningTaxes/ExecuteSendMiningTaxesInvoiceCommand.php +++ b/app/Console/Commands/MiningTaxes/ExecuteSendMiningTaxesInvoiceCommand.php @@ -4,7 +4,7 @@ namespace App\Console\Commands\MiningTaxes; use Illuminate\Console\Command; -use App\Jobs\Commands\MiningTaxes\SendMiningTaxesInvoices as SendInvoice; +use App\Jobs\Commands\MiningTaxes\Invoices\SendMiningTaxesInvoices as SendInvoice; class ExecuteSendMiningTaxesInvoiceCommand extends Command { @@ -39,7 +39,7 @@ class ExecuteSendMiningTaxesInvoiceCommand extends Command */ public function handle() { - SendInvoice::dispatch()->onQueue('miningtaxes'); + SendInvoice::dispatch(); return 0; } diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index d43ee762f..14bd8fcdc 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -22,6 +22,7 @@ use App\Jobs\Commands\Structures\FetchAllianceStructures; use App\Jobs\Commands\Structures\PurgeAllianceStructures; use App\Jobs\Commands\Assets\FetchAllianceAssets; use App\Jobs\Commands\Assets\PurgeAllianceAssets; +use App\Jobs\Commands\MoonRental\UpdateAllianceMoonRentalWorth; class Kernel extends ConsoleKernel { @@ -107,6 +108,9 @@ class Kernel extends ConsoleKernel $schedule->job(new UpdateMiningTaxesLateInvoices15th) ->monthlyOn(15, '16:00') ->withoutOverlapping(); + $schedule->job(new UpdateAllianceMoonRentalWorth) + ->dailyAt('13:00') + ->withoutOverlapping(); /** * Alliance Structure and Assets Schedule diff --git a/app/Jobs/Commands/MiningTaxes/CreateMiningTaxesInvoice.php b/app/Jobs/Commands/MiningTaxes/CreateMiningTaxesInvoice.php deleted file mode 100644 index 37e8185ed..000000000 --- a/app/Jobs/Commands/MiningTaxes/CreateMiningTaxesInvoice.php +++ /dev/null @@ -1,65 +0,0 @@ -connection = 'redis'; - $this->onQueue('miningtaxes'); - } - - /** - * Execute the job. - * - * @return void - */ - public function handle() - { - //Declare variables - $lookup = new LookupHelper; - $mainAlts = array(); - $mainIds = new Collection; - - //Get all of the users in the database - $characters = User::all(); - } -} diff --git a/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgers.php b/app/Jobs/Commands/MiningTaxes/Ledgers/FetchMiningTaxesLedgers.php similarity index 97% rename from app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgers.php rename to app/Jobs/Commands/MiningTaxes/Ledgers/FetchMiningTaxesLedgers.php index 6a9eddeb3..927391db8 100644 --- a/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgers.php +++ b/app/Jobs/Commands/MiningTaxes/Ledgers/FetchMiningTaxesLedgers.php @@ -1,6 +1,6 @@ observerId)->onQueue('miningtaxes'); + ProcessMiningTaxesLedgers::dispatch($ledger, $this->observerId); } } diff --git a/app/Jobs/Commands/MiningTaxes/ProcessMiningTaxesLedgers.php b/app/Jobs/Commands/MiningTaxes/Ledgers/ProcessMiningTaxesLedgers.php similarity index 98% rename from app/Jobs/Commands/MiningTaxes/ProcessMiningTaxesLedgers.php rename to app/Jobs/Commands/MiningTaxes/Ledgers/ProcessMiningTaxesLedgers.php index c5ce4dfc9..916ab74f0 100644 --- a/app/Jobs/Commands/MiningTaxes/ProcessMiningTaxesLedgers.php +++ b/app/Jobs/Commands/MiningTaxes/Ledgers/ProcessMiningTaxesLedgers.php @@ -1,6 +1,6 @@ observer_id)->onQueue('miningtaxes'); + FetchMiningTaxesLedgers::dispatch($config['primary'], $config['corporation'], $obs->observer_id); } }