refactor: rename warnings/bans/notes <-> user/staff relations

These relations are older than the laravel convention for using camel case. Clean up their names to match modern styling and make them easier to read.
This commit is contained in:
Roardom
2025-11-08 10:07:20 +00:00
parent e922fbc386
commit 72a1e1a885
28 changed files with 109 additions and 127 deletions
@@ -63,7 +63,7 @@ class InviteTreeController extends Controller
->with('group')
->withCount([
'warnings' => function ($query): void {
$query->whereNotNull('torrent')->where('active', '=', true);
$query->whereNotNull('torrent_id')->where('active', '=', true);
},
])
->get();
@@ -107,7 +107,7 @@ class InviteTreeController extends Controller
->withSum('seedingTorrents', 'size')
->withCount([
'warnings' => function ($query): void {
$query->whereNotNull('torrent')->where('active', '=', true);
$query->whereNotNull('torrent_id')->where('active', '=', true);
},
])
])