mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 08:19:33 -05:00
refactor: use _id suffix on bon_transactions foreign keys
This commit is contained in:
@@ -81,8 +81,8 @@ class UserController extends Controller
|
||||
->with(['torrenttitle', 'warneduser'])
|
||||
->latest('created_at')
|
||||
->paginate(10, ['*'], 'deletedWarningsPage'),
|
||||
'boughtUpload' => BonTransactions::where('sender', '=', $user->id)->where([['name', 'like', '%Upload%']])->sum('cost'),
|
||||
// 'boughtDownload' => BonTransactions::where('sender', '=', $user->id)->where([['name', 'like', '%Download%']])->sum('cost'),
|
||||
'boughtUpload' => BonTransactions::where('sender_id', '=', $user->id)->where([['name', 'like', '%Upload%']])->sum('cost'),
|
||||
// 'boughtDownload' => BonTransactions::where('sender_id', '=', $user->id)->where([['name', 'like', '%Download%']])->sum('cost'),
|
||||
'invitedBy' => Invite::where('accepted_by', '=', $user->id)->first(),
|
||||
'clients' => $user->peers()
|
||||
->select('agent', 'port')
|
||||
|
||||
Reference in New Issue
Block a user