|
|
@@ -294,7 +294,7 @@ export function createCrudRoutes<
|
|
|
}
|
|
|
|
|
|
// return c.json(await getSchema.parseAsync(result), 200);
|
|
|
- return c.json(await parseWithAwait(getSchema, data), 200);
|
|
|
+ return c.json(await parseWithAwait(getSchema, result), 200);
|
|
|
} catch (error) {
|
|
|
if (error instanceof z.ZodError) {
|
|
|
return c.json({ code: 400, message: '参数验证失败', errors: JSON.parse(error.message) }, 400);
|