移除 不用的控制器
This commit is contained in:
parent
92e740294b
commit
db0200760a
@ -32,9 +32,7 @@ public function handle()
|
||||
// end of this month
|
||||
$endOfMonth = now()->endOfMonth();
|
||||
|
||||
$moduleController = new ModuleController();
|
||||
|
||||
Module::chunk(100, function ($modules) use ($moduleController, $beginOfMonth, $endOfMonth) {
|
||||
Module::chunk(100, function ($modules) use ($beginOfMonth, $endOfMonth) {
|
||||
foreach ($modules as $module) {
|
||||
|
||||
$this_month = Transaction::where('module_id', $module->id)->where('type', 'payout')->whereBetween('created_at', [$beginOfMonth, $endOfMonth]);
|
||||
|
Loading…
Reference in New Issue
Block a user