big update all menus

This commit is contained in:
Wian Drs
2026-08-07 09:16:13 +07:00
parent 75342dc7b7
commit e7575ba1c0
101 changed files with 3451 additions and 89 deletions
+11
View File
@@ -19,3 +19,14 @@ Schedule::command('notifications:prune')
->timezone(config('app.timezone'))
->withoutOverlapping()
->onOneServer();
Schedule::command('nas:check-mikrotiks')
->everyMinute()
->withoutOverlapping()
->onOneServer();
Schedule::call(function () {
\App\Models\CustomerNasAccount::query()->whereIn('status', ['active','disabled'])
->where(fn ($q) => $q->whereNull('last_reconciled_at')->orWhere('last_reconciled_at','<=',now()->subMinutes(5)))
->select('id')->chunkById(200, fn ($rows) => $rows->each(fn ($row) => \App\Jobs\ReconcileCustomerNasAccount::dispatch($row->id)));
})->everyMinute()->name('nas-reconcile-accounts')->withoutOverlapping()->onOneServer();