Fix corr notification bug
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 1 Jun 2020 15:43:20 +0000 (17:43 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 1 Jun 2020 15:43:20 +0000 (17:43 +0200)
TODO
server/models/User.js

diff --git a/TODO b/TODO
index ca05de4..6fe14fc 100644 (file)
--- 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
index c193d6d..d91045b 100644 (file)
@@ -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);
     });
   },