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

Ghost match.

parent c132bbc4
......@@ -165,6 +165,10 @@ router.post('/score', function (req, res) {
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) {
console.error('error fetching client from pool', 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