박기홍

temp

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