Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
Quote keys before sending to commandline
  • Loading branch information
bherr2 authored Apr 17, 2024
1 parent a2a5329 commit 5eb40ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app.post('/mesh-3d-cell-population', (req, res) => {
// Construct command line to run generate_cell_ctpop
let cmd = ['./generate_cell_ctpop', glbStem, sceneNode];
for (let [k, v] of Object.entries(nodeDistribution)) {
cmd.push(k, Math.floor(v * numNodes).toString());
cmd.push(`"${k}"`, Math.floor(v * numNodes).toString());
}

// Invoke compiled exe.
Expand Down

0 comments on commit 5eb40ad

Please sign in to comment.