Pārlūkot izejas kodu

Reverse Changes. Wrong Commit

Dennis 3 gadi atpakaļ
vecāks
revīzija
b3d73e3786
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      app/Http/Controllers/Admin/PaymentController.php

+ 3 - 3
app/Http/Controllers/Admin/PaymentController.php

@@ -141,9 +141,9 @@ class PaymentController extends Controller
                 $user->increment('credits', $paypalProduct->quantity);
                 $user->increment('credits', $paypalProduct->quantity);
 
 
                 //update server limit
                 //update server limit
-                if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE') !== 0) {
-                    if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')) {
-                        $user->update(['server_limit' => Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')]);
+                if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10) !== 0) {
+                    if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10)) {
+                        $user->update(['server_limit' => 10]);
                     }
                     }
                 }
                 }