Skip to content

Commit 26287b2

Browse files
echo the submission id on timeout too
Signed-off-by: Arnav Gupta <arnav@codingblocks.com>
1 parent 4a0a89c commit 26287b2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/routes/api/run.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/routes/api/run.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/api/run.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ route.post('/', (req, res, next) => {
7575
setTimeout(() => {
7676
if (runPool[submission.id]) {
7777
runPool[submission.id].status(408).json({
78+
id: submission.id,
7879
code: 408,
7980
message: "Compile/Run timed out",
8081
})

0 commit comments

Comments
 (0)