Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-arena-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-arena-api
Commits
f5c8aaf7
Commit
f5c8aaf7
authored
Jan 01, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Why don't you parse int here?
parent
d8b3e0e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
routes/api.js
routes/api.js
+2
-2
No files found.
routes/api.js
View file @
f5c8aaf7
...
@@ -207,8 +207,8 @@ router.post('/score', function (req, res) {
...
@@ -207,8 +207,8 @@ router.post('/score', function (req, res) {
let
usernameA
=
req
.
body
.
usernameA
let
usernameA
=
req
.
body
.
usernameA
let
usernameB
=
req
.
body
.
usernameB
let
usernameB
=
req
.
body
.
usernameB
let
userscoreA
=
req
.
body
.
userscoreA
||
0
let
userscoreA
=
parseInt
(
req
.
body
.
userscoreA
)
||
0
let
userscoreB
=
req
.
body
.
userscoreB
||
0
let
userscoreB
=
parseInt
(
req
.
body
.
userscoreB
)
||
0
let
start
=
req
.
body
.
start
let
start
=
req
.
body
.
start
let
end
=
req
.
body
.
end
let
end
=
req
.
body
.
end
let
arena
=
req
.
body
.
arena
||
'
entertain
'
let
arena
=
req
.
body
.
arena
||
'
entertain
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment