From 718d1ea6636a2864122b0633c824bd5869e4b53d Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Fri, 19 Jul 2019 22:55:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E7=BB=83=E4=B9=A0?= =?UTF-8?q?=E9=A1=B5=E6=8A=A5undefined=E7=9A=84=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/practice.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/practice.js b/modules/practice.js index a07b8a7..15c2485 100644 --- a/modules/practice.js +++ b/modules/practice.js @@ -38,7 +38,7 @@ app.get('/practice', async (req, res) => { await userQuery.update(User).set({current_p_id: currentPId}).where("id = :id", { id:userId }).execute(); } } else { - test.push(resultItem.order); + unFinishedIdArray.push(resultItem.order); } }); } @@ -64,8 +64,7 @@ app.get('/practice', async (req, res) => { } res.render('practice', { user:res.locals.user, - result, - newRating + result }) } catch (e) { syzoj.log(e);