pi transactions

This commit is contained in:
2019-05-04 23:24:55 -05:00
parent 4f46316efd
commit ec556cfc29
4 changed files with 18 additions and 112 deletions
+4 -11
View File
@@ -56,17 +56,10 @@ class PiTransactionsCommand extends Command
//Setup the Finances container
$finance = new FinanceHelper();
//Get the total pages for the transactions
$pages = $finance->GetTransactionPageCount(3, 94415555);
dd($pages);
//Dispatch a single job for each page to process
for($i = 1; $i <= $pages; $i++) {
$job = new JobProcessWalletTransaction;
$job->division = 3;
$job->charId = 94415555;
$job->page = $i;
ProcessWalletTransactionJob::dispatch($job);
}
$job = new JobProcessWalletTransaction;
$job->division = 3;
$job->charId = 94415555;
ProcessWalletTransactionJob::dispatch($job);
//Mark the job as finished
$task->SetStopStatus();