testing new mining tax

This commit is contained in:
2021-05-25 01:37:24 +09:00
parent 2361f5dc1c
commit f28fa7d0e2

View File

@@ -84,11 +84,11 @@ class TestController extends Controller
//Pluck all the users from the database of ledgers to determine if they are mains or alts.
$tempMains = Ledger::where([
'invoiced' => 'Yes',
])->where('last_updated', '>', Carbon::now()->subMonths(3))->pluck('character_id')->toArray();
])->where('last_updated', '>', Carbon::now()->subMonths(3))->pluck('character_id');
foreach($tempMains as $main) {
if(!isset($mains[$main['character_id']])) {
$mains['character_id'] = $main['character_id'];
if(!isset($mains[$main->character_id])) {
$mains[$main->character_id] = $main->character_id;
}
}