fix(admin): remove manual reasons and repair code creation
This commit is contained in:
@@ -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),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user