Skip to content

Commit

Permalink
fix(app): use response.body instead of initial returned val
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 2, 2023
1 parent ba42c82 commit 0434358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function createAppEventHandler(stack: Stack, options: AppOptions) {
if (options.onBeforeResponse) {
await options.onBeforeResponse(event, _response);
}
await handleHandlerResponse(event, val, spacing);
await handleHandlerResponse(event, _response.body, spacing);
if (options.onAfterResponse) {
await options.onAfterResponse(event, _response);
}
Expand Down

0 comments on commit 0434358

Please sign in to comment.