Commit d574c651 authored by Joe's avatar Joe

Merge branch 'master' of github.com:moecube/ygopro-arena-api

parents 97eecf14 5072db53
...@@ -161,6 +161,10 @@ router.post('/score', function (req, res) { ...@@ -161,6 +161,10 @@ router.post('/score', function (req, res) {
let end = req.body.end let end = req.body.end
let arena = req.body.arena || 'entertain' let arena = req.body.arena || 'entertain'
if (userscoreA == -5 && userscoreB == -5) {
return res.status(200).send('ghost match wont calculate the score.');
}
if (!usernameA || !usernameB) { if (!usernameA || !usernameB) {
return res.status(404).send('username can not be null') return res.status(404).send('username can not be null')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment