Skip to content

Commit

Permalink
fix: pass script parameter value into scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 27, 2024
1 parent 3f9d039 commit cb94b2b
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 @@ -46,7 +46,7 @@ export const scriptHandlerProxy =
let scriptResult: ScriptHandlerResult;

try {
scriptResult = await scriptHandler(bodyParseResult);
scriptResult = await scriptHandler(bodyParseResult.data.scriptParameterValue);
} catch (error) {
console.error(error);
context.body = { scriptResult: { code: 1, resultParameter: "" } };
Expand Down

0 comments on commit cb94b2b

Please sign in to comment.