mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-21 17:28:31 -05:00
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:
@@ -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);
|
||||
},
|
||||
])
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user