Skip to content

Commit

Permalink
fix(script): parse from context.request.body instead of context.body
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 7, 2024
1 parent 011c335 commit b972c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const bodySchema = z.object({
export const scriptHandlerProxy =
(scriptHandler: ScriptHandler) =>
async (context: RouterContext): Promise<void> => {
const bodyParseResult = bodySchema.safeParse(context.body);
const bodyParseResult = bodySchema.safeParse(context.request.body);

if (!bodyParseResult.success) {
console.error(bodyParseResult.error);
Expand Down

0 comments on commit b972c33

Please sign in to comment.