Refactor: remove setup wizard and related middleware, update settings management

This commit is contained in:
2026-04-07 13:40:08 +00:00
parent ef37385b3d
commit 80318d33b4
8 changed files with 45 additions and 61 deletions

View File

@@ -168,9 +168,8 @@ class Territorio extends Model
$soglia = Setting::getValue('giorni_per_smarrito', 120);
return $query->attivi()
->whereHas('assegnazioni', function ($q) use ($soglia) {
$q->whereNull('returned_at')
->where('assigned_at', '<=', now()->subDays($soglia));
->whereHas('assegnazioneCorrente', function ($q) use ($soglia) {
$q->where('assigned_at', '<=', now()->subDays($soglia));
});
}