projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Scale Discord and Github icons, slightly better displayed
[vchess.git]
/
server
/
routes
/
games.js
diff --git
a/server/routes/games.js
b/server/routes/games.js
index
21aee47
..
a86a76d
100644
(file)
--- a/
server/routes/games.js
+++ b/
server/routes/games.js
@@
-12,7
+12,7
@@
router.post("/games", access.logged, access.ajax, (req,res) => {
const cid = req.body.cid;
if (
Array.isArray(gameInfo.players) &&
const cid = req.body.cid;
if (
Array.isArray(gameInfo.players) &&
- gameInfo.players.some(p => p.id == req.userId) &&
+ gameInfo.players.some(p => p.
u
id == req.userId) &&
(!cid || cid.toString().match(/^[0-9]+$/)) &&
GameModel.checkGameInfo(gameInfo)
) {
(!cid || cid.toString().match(/^[0-9]+$/)) &&
GameModel.checkGameInfo(gameInfo)
) {