fix: remove created_by_admin from billing INSERT and schema

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/2ce89b8b-fa50-40b9-aa38-4ebbc44a9770

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-01 13:52:38 +00:00 committed by GitHub
parent dc67968d74
commit 2d2fc496d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 11 deletions

View file

@ -5,7 +5,7 @@
* Shared helper for recording admin-created game servers in the billing tables,
* so they are treated identically to FREE website orders:
* billing_invoices (status='paid', amount=0)
* billing_orders (status='installed', price=0, created_by_admin=1, set in INSERT)
* billing_orders (status='installed', price=0)
*
* This does NOT re-provision the server the caller (add_home.php) already
* created the server via the panel DB layer. We only write the billing ledger
@ -134,7 +134,6 @@ if (!function_exists('admin_register_server_in_billing')) {
'payment_txid' => 'admin-created',
'paid_ts' => $now,
'coupon_id' => 0,
'created_by_admin' => 1,
);
$order_id = $db->resultInsertId('billing_orders', $order_fields);