mining tax observers

This commit is contained in:
2021-02-16 19:44:41 +09:00
parent 5aafbc9ce0
commit e14f9c0764

View File

@@ -55,6 +55,7 @@ class MiningTaxesObservers extends Command
$task = new CommandHelper('MiningTaxesObservers');
//Set the task as started
$task->SetStartStatus();
$startTime = time();
//Declare variables
$config = config('esi');
@@ -87,8 +88,6 @@ class MiningTaxesObservers extends Command
$resp = json_decode($response->raw, false);
dd($resp);
//Run through the mining observers, and add them to the database
foreach($resp as $observer) {
@@ -110,6 +109,8 @@ class MiningTaxesObservers extends Command
$task->SetStopStatus();
$endTime = time();
printr("Time to complete: " . ($endTime - $startTime));
//Return 0 saying everything is fine
return 0;