Skip to content

Commit

Permalink
fix Json.stringify for use with newer versions of wing compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer committed Aug 29, 2023
1 parent eea5d2e commit 0f33639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.w
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ api.get("/leaderboard", inflight (_) => {
// Select the winner between a pair of options
api.post("/selectWinner", inflight (req) => {
let body = Json.parse(req.body ?? "");
log(Json.stringify(body, 2));
log(Json.stringify(body, {indent: 2}));
let selections = SelectWinnerRequest.fromJson(body);

let var newScores = Array<num>[];
Expand Down

0 comments on commit 0f33639

Please sign in to comment.