From: Benjamin Auder Date: Mon, 1 Jun 2020 15:43:20 +0000 (+0200) Subject: Fix corr notification bug X-Git-Url: https://git.auder.net/doc/html/css/scripts/%7B%7B%20asset%28%27mixstore/%3C?a=commitdiff_plain;h=323de224a70234975f325a15003a8b10b1a021d9;p=vchess.git Fix corr notification bug --- diff --git a/TODO b/TODO index ca05de47..6fe14fc3 100644 --- a/TODO +++ b/TODO @@ -16,6 +16,8 @@ https://www.chessvariants.com/mvopponent.dir/avalanche.html https://www.chessvariants.com/mvopponent.dir/hypnotic-chess.html https://www.chessvariants.com/mvopponent.dir/mesmer-chess.html +https://brainking.com/en/GameRules?tp=47&fwa=ArchivedGame!g=8204276$i=1 + Squatter Chess: safe on last rank = win Companion Chess : pieces of same nature don't attack each others https://www.chessvariants.com/difftaking.dir/brotherhood.html diff --git a/server/models/User.js b/server/models/User.js index c193d6db..d91045b7 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -139,7 +139,7 @@ const UserModel = { }, tryNotify: function(id, message) { - UserModel.getOne("id", id, "name, email", (err, user) => { + UserModel.getOne("id", id, "name, email, notify", (err, user) => { if (!err && user.notify) UserModel.notify(user, message); }); },