mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
Add bonus points to user ajax endpoint
This commit is contained in:
@@ -81,6 +81,7 @@ class User extends \Gazelle\Json {
|
||||
!$downloaded => 0.0,
|
||||
default => (float)ratio($uploaded, $downloaded, 5),
|
||||
},
|
||||
'bonusPoints' => $this->valueOrNull($user->bonusPointsTotal(), 'bonuspoints'),
|
||||
],
|
||||
'ranks' => [
|
||||
'uploaded' => $this->valueOrNull($rank->rank('uploaded'), 'uploaded'),
|
||||
|
||||
Reference in New Issue
Block a user