mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-30 15:59:28 -06:00
(Fix) Profile True Download
Download removed from BON store should be added not subtracted. Recorded Download + Download Removed From BON Store = True Download
This commit is contained in:
@@ -77,7 +77,7 @@ class UserController extends Controller
|
||||
$bonupload = BonTransactions::where('sender', $id)->where([['name', 'like', '%Upload%'],])->sum('cost');
|
||||
$realupload = $user->uploaded - $bonupload;
|
||||
$bondownload = BonTransactions::where('sender', $id)->where([['name', 'like', '%Download%'],])->sum('cost');
|
||||
$realdownload = $user->downloaded - $bondownload;
|
||||
$realdownload = $user->downloaded + $bondownload;
|
||||
|
||||
return view('user.profile', [
|
||||
'user' => $user,
|
||||
|
||||
Reference in New Issue
Block a user