job testing

This commit is contained in:
2019-05-03 23:59:32 -05:00
parent 94e86a6bcb
commit fea7291567

View File

@@ -34,7 +34,10 @@ class ProcessWalletJournalJob implements ShouldQueue
* @return void
*/
public function __construct(JobModel $pwj) {
$this->pwj = $pwj;
$this->division = $pwj->division;
$this->charId = $pwj->charId;
$this->page = $pwj->page;
$this->delay = 15;
$this->connection = 'database';
}
@@ -52,7 +55,7 @@ class ProcessWalletJournalJob implements ShouldQueue
//Declare the class variable we need
$finance = new FinanceHelper();
$finance->GetWalletJournalPage($pwj->division, $pwj->charId, $pwj->page);
$finance->GetWalletJournalPage($this->division, $this->charId, $this->page);
//After the job is completed, delete the job
$this->delete();