Skip to content

Commit

Permalink
fix(route): fix route.fulfill json option handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed Oct 22, 2023
1 parent 23ebc51 commit 2fa63aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WS/route/Route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default class Route {
if (body !== undefined) {
throw new Error('Can specify either body or json parameters');
}
fulfillBody = JSON.stringify(fulfillBody);
fulfillBody = JSON.stringify(json);
} else {
fulfillBody = body;
}
Expand Down

0 comments on commit 2fa63aa

Please sign in to comment.