mining operations
This commit is contained in:
@@ -55,12 +55,14 @@ class ProcessAllianceMiningOperations implements ShouldQueue
|
|||||||
{
|
{
|
||||||
$count = MiningOperation::where([
|
$count = MiningOperation::where([
|
||||||
'processed' => 'No',
|
'processed' => 'No',
|
||||||
])->count()
|
])->where('operation_date', '<=', Carbon::now())
|
||||||
|
->count()
|
||||||
|
|
||||||
if($count > 0) {
|
if($count > 0) {
|
||||||
$operations = MiningOperation::where([
|
$operations = MiningOperation::where([
|
||||||
'processed' => 'No',
|
'processed' => 'No',
|
||||||
])->get();
|
])->where('operation_date', '<=', Carbon::now())
|
||||||
|
->get();
|
||||||
|
|
||||||
foreach($operations as $operation) {
|
foreach($operations as $operation) {
|
||||||
$ledgers = Ledger::where([
|
$ledgers = Ledger::where([
|
||||||
|
|||||||
Reference in New Issue
Block a user