From 743b30a72849370f24d13ae1de221df01179e38f Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Mon, 5 Aug 2019 11:31:01 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E8=A7=A3=E5=86=B3=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=B5=8B=E8=AF=84=E6=97=B6=E6=9C=89=E6=97=B6=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0unkonw=E7=9A=84=E6=83=85=E5=86=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/submission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/submission.js b/modules/submission.js index f916f5c..2034d8b 100644 --- a/modules/submission.js +++ b/modules/submission.js @@ -293,7 +293,7 @@ app.get('/submission/:id', async (req, res) => { formattedCode: judge.formattedCode ? judge.formattedCode.toString("utf8") : null, preferFormattedCode: res.locals.user ? res.locals.user.prefer_formatted_code : true, detailResult: processOverallResult(judge.result, currentConfig), - socketToken: (judge.pending && judge.task_id != null) ? jwt.sign({ + socketToken: (judge.task_id != null) ? jwt.sign({ taskId: judge.task_id, type: 'detail', displayConfig: displayConfig