projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Draft Hiddenqueen, Grasshopper and Knightmate chess (rules unwritten)
[vchess.git]
/
server
/
routes
/
games.js
diff --git
a/server/routes/games.js
b/server/routes/games.js
index
607ab39
..
4000ac7
100644
(file)
--- a/
server/routes/games.js
+++ b/
server/routes/games.js
@@
-90,8
+90,8
@@
router.delete("/chats", access.logged, access.ajax, (req,res) => {
GameModel.getPlayers(gid, (err,players) => {
if (players.some(p => p.uid == req.userId))
{
- GameModel.update(gid, {delchat: true}, (
err
) => {
- res.json(
err ||
{});
+ GameModel.update(gid, {delchat: true}, () => {
+ res.json({});
});
}
});