Toggle navigation
Toggle navigation
This project
Loading...
Sign in
khusat
/
khusat-server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박기홍
2020-12-10 02:04:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
faab574503d87d44d03d2414482cd8db132cfade
faab5745
1 parent
aca7bd5f
temp
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
package.json
src/router/index.js
package.json
View file @
faab574
...
...
@@ -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"
,
...
...
src/router/index.js
View file @
faab574
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment