job status for database

This commit is contained in:
2019-05-05 01:51:21 -05:00
parent a0c4c619b0
commit 4b2a1758e2
8 changed files with 53 additions and 37 deletions

View File

@@ -14,7 +14,6 @@ use App\Library\Finances\Helper\FinanceHelper;
//App Models
use App\Models\Jobs\JobProcessWalletJournal;
use App\Models\Jobs\JobError;
use App\Models\Jobs\JobStatus;
class ProcessWalletJournalJob implements ShouldQueue
@@ -65,6 +64,11 @@ class ProcessWalletJournalJob implements ShouldQueue
//After the job is completed, delete the job
$this->delete();
$status = new JobStatus;
$status->job_name = 'Process Wallet Journal';
$status->complete = true;
$status->save();
}
/**