fix(admin): remove manual reasons and repair code creation
Independent Staging Quality Gate / validate (push) Has been cancelled
Independent Staging Quality Gate / publish (push) Has been cancelled

This commit is contained in:
Jesse_Chen
2026-08-16 16:49:05 +08:00
parent 9df43e8112
commit c712787ec2
24 changed files with 180 additions and 206 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ const adjustmentSchema = z.object({
id: z.string().uuid(),
action: z.enum(["retry_grant", "compensate", "record_refund"]),
expectedVersion: z.number().int().min(0),
reason: z.string().trim().min(1).max(500),
});
type Row = {
@@ -125,7 +124,7 @@ export async function POST(request: Request) {
parsed.data.id,
parsed.data.action,
parsed.data.expectedVersion,
parsed.data.reason,
"admin_console_adjust_order",
requestId(request),
],
);