From d9db72fd9096643b2532d7a8ffe13293782d096e Mon Sep 17 00:00:00 2001 From: john Date: Wed, 5 Aug 2026 16:24:24 +0800 Subject: [PATCH] fix(billing): use admin_adjust ledger reason for setImageQuota Production ledger reason column is ENUM and rejects admin_set. Co-authored-by: Cursor --- billing-subscription.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billing-subscription.mjs b/billing-subscription.mjs index 6563256..3ae91c1 100644 --- a/billing-subscription.mjs +++ b/billing-subscription.mjs @@ -775,7 +775,7 @@ export function createSubscriptionService(pool, { getPlanAsync = null } = {}) { userId, delta: ledgerDelta, balanceAfter: quota.unlimited ? null : quota.remaining, - reason: 'admin_set', + reason: 'admin_adjust', operatorId, note, });