forked from Alex/Pterodactyl-Panel
api: remove old debug logs
This commit is contained in:
parent
fad4005168
commit
34d20b2bf0
@ -7,7 +7,6 @@ use Pterodactyl\Models\Egg;
|
||||
use Pterodactyl\Models\Nest;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Spatie\QueryBuilder\QueryBuilder;
|
||||
use Pterodactyl\Services\Eggs\Sharing\EggExporterService;
|
||||
use Pterodactyl\Transformers\Api\Application\EggTransformer;
|
||||
@ -71,13 +70,11 @@ class EggController extends ApplicationApiController
|
||||
public function store(StoreEggRequest $request): JsonResponse
|
||||
{
|
||||
$validated = $request->validated();
|
||||
Log::info(json_encode($validated, JSON_PRETTY_PRINT));
|
||||
$merged = array_merge($validated, [
|
||||
'uuid' => Uuid::uuid4()->toString(),
|
||||
// TODO: allow this to be set in the request, and default to config value if null or not present.
|
||||
'author' => config('pterodactyl.service.author'),
|
||||
]);
|
||||
Log::info(json_encode($merged, JSON_PRETTY_PRINT));
|
||||
|
||||
$egg = Egg::query()->create($merged);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user