api: remove old debug logs

This commit is contained in:
Matthew Penner 2021-11-04 11:37:33 -06:00
parent fad4005168
commit 34d20b2bf0
No known key found for this signature in database
GPG key ID: BAB67850901908A8

View file

@ -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);