Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Saumya40-codes authored Jul 21, 2024
1 parent 7c367ac commit a4fc2fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ app.post('/execute', (req, res) => {
if (stderr) {
return res.status(200).json({ output: stderr });
}
return res.status(200).json({ output: stdout });
return res.status(200).json({ output: stdout });
});

} catch (err) {
console.error(err);
res.status(500).send('Internal Server Error');
console.error(err);
res.status(500).send('Internal Server Error');
}
});

Expand Down

0 comments on commit a4fc2fb

Please sign in to comment.