From 323de224a70234975f325a15003a8b10b1a021d9 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Mon, 1 Jun 2020 17:43:20 +0200 Subject: [PATCH] Fix corr notification bug --- TODO | 2 ++ server/models/User.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); }); }, -- 2.44.0