diff --git a/modules/problem.js b/modules/problem.js index afa41dc..84df7e2 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -683,7 +683,9 @@ app.post('/problem/:id/submit', app.multer.fields([{ name: 'answer', maxCount: 1 code: formatted }); - await formattedCode.save(); + try { + await formattedCode.save(); + } catch (e) {} } } }