Browse Source

Workaround a race condition in submitting

master
Menci 6 years ago
parent
commit
d747ac66e6
  1. 2
      modules/problem.js

2
modules/problem.js

@ -683,7 +683,9 @@ app.post('/problem/:id/submit', app.multer.fields([{ name: 'answer', maxCount: 1
code: formatted
});
try {
await formattedCode.save();
} catch (e) {}
}
}
}

Loading…
Cancel
Save