Remove tourneyPath: doesn't make sense without tournament website
[vchess.git] / server / routes / users.js
index b14defb..9471113 100644 (file)
@@ -50,8 +50,6 @@ router.post('/register', access.unlogged, access.ajax, (req,res) => {
           email: email
         };
         setAndSendLoginToken("Welcome to " + params.siteURL, user);
-        // Update tournament DB (TODO: if error, log it)
-        exec(params.tourneyPath + "/dbsync/insert_user.py " + ret.id);
         res.json({});
       }
     });
@@ -105,7 +103,6 @@ router.put('/update', access.logged, access.ajax, (req,res) => {
       notify: !!req.body.notify,
     };
     UserModel.updateSettings(user);
-    exec(params.tourneyPath + "/dbsync/update_user.py " + ret.id);
     res.json({});
   }
 });