mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 20:46:26 +02:00
Make ran field do something
This commit is contained in:
parent
f685bdc751
commit
8fd831982e
2 changed files with 9 additions and 4 deletions
|
@ -49,10 +49,10 @@ app.post(
|
|||
language.aliases.includes(req.body.language.toLowerCase())
|
||||
);
|
||||
|
||||
const { stdout, stderr, output } = await execute(language, req.body.source, req.body.args);
|
||||
const { stdout, stderr, output, ran } = await execute(language, req.body.source, req.body.args);
|
||||
|
||||
res.status(200).json({
|
||||
ran: true,
|
||||
ran,
|
||||
language: language.name,
|
||||
version: language.version,
|
||||
stdout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue