(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:
werrpy
2018-07-22 21:02:56 -04:00
parent f0d56683d9
commit 11bc44bdee
2 changed files with 2 additions and 2 deletions

View File

@@ -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,