박기홍

temp

......@@ -9,8 +9,10 @@
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"global": "^4.4.0",
"mongoose": "^5.10.14",
"nodemon": "^2.0.6"
"nodemon": "^2.0.6",
"pm2": "^4.5.0"
},
"scripts": {
"start": "NODE_PATH=src node src",
......
......@@ -142,7 +142,7 @@ module.exports = function(app)
for(let i=0; i<answers.length; i++){
const question = await Question.findOne({num: answers[i].num}).exec();
if(question.choice === 0){
if(answers.choice === 0){
fight += question.fight;
detail += question.detail;
traffic += question.traffic;
......