cleanup
This commit is contained in:
parent
0e5eda1470
commit
d6a00f62ae
|
@ -54,7 +54,6 @@ class ChargeCreditsCommand extends Command
|
||||||
$user = $server->user;
|
$user = $server->user;
|
||||||
$price = ($server->product->price / 30) / 24;
|
$price = ($server->product->price / 30) / 24;
|
||||||
|
|
||||||
|
|
||||||
//remove credits or suspend server
|
//remove credits or suspend server
|
||||||
if ($user->credits >= $price) {
|
if ($user->credits >= $price) {
|
||||||
$user->decrement('credits', $price);
|
$user->decrement('credits', $price);
|
||||||
|
|
|
@ -6,7 +6,7 @@ use App\Classes\Pterodactyl;
|
||||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class testUserCommand extends TestCase
|
class TestUserCommand extends TestCase
|
||||||
{
|
{
|
||||||
use DatabaseTransactions;
|
use DatabaseTransactions;
|
||||||
|
|
Loading…
Reference in a new issue