From 9eee3e585030f1ad0252d69b3ecac4a1f39501f3 Mon Sep 17 00:00:00 2001 From: Patrick Feng <96509178+kokonut121@users.noreply.github.com> Date: Wed, 25 Oct 2023 08:43:23 -0700 Subject: [PATCH] create stat initailization --- routes/reviewers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routes/reviewers.js b/routes/reviewers.js index bda64e84..a2593fbc 100644 --- a/routes/reviewers.js +++ b/routes/reviewers.js @@ -142,7 +142,11 @@ module.exports = (app, mongo) => { units: req.body.units, hourRefactor: question.hourRefactor, writtenDate: question.writtenDate, - reviewers: question.reviewers + reviewers: question.reviewers, + stats: { + pass: 0, + fail: 0 + } }); newQ.save(); }