Commit 44964db2 authored by 不如归去's avatar 不如归去 Committed by GitHub

Ghost match.

parent c132bbc4
......@@ -164,6 +164,10 @@ router.post('/score', function (req, res) {
if (!usernameA || !usernameB) {
return res.status(404).send('username can not be null')
}
if (userscoreA == -5 && userscoreB == -5) {
return res.status(200).send('ghost match wont calculate the score.');
}
pool.connect(function (err, client, done) {
if (err) {
......
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