Remove tourneyPath: doesn't make sense without tournament website
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 1 Dec 2021 23:30:45 +0000 (00:30 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 1 Dec 2021 23:30:45 +0000 (00:30 +0100)
server/config/parameters.js.dist
server/models/User.js
server/routes/users.js

index b7abc13..1cf4475 100644 (file)
@@ -21,9 +21,6 @@ module.exports = {
     expire: 30*60*1000, //30 minutes in milliseconds
   },
 
     expire: 30*60*1000, //30 minutes in milliseconds
   },
 
-  // Path to tournament repository (to synchronize DBs)
-  tourneyPath: "/path/to/folder",
-
   // Email settings
   mail: {
     host: "mail_host_address",
   // Email settings
   mail: {
     host: "mail_host_address",
index 655012d..cc104ab 100644 (file)
@@ -177,8 +177,6 @@ const UserModel = {
             "DELETE FROM Users " +
             "WHERE id IN (" + remArg + ")"
           );
             "DELETE FROM Users " +
             "WHERE id IN (" + remArg + ")"
           );
-          // Update tournament DB:
-          exec(params.tourneyPath + "/dbsync/delete_users.py " + remArg);
         }
       });
     });
         }
       });
     });
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);
           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({});
       }
     });
         res.json({});
       }
     });
@@ -105,7 +103,6 @@ router.put('/update', access.logged, access.ajax, (req,res) => {
       notify: !!req.body.notify,
     };
     UserModel.updateSettings(user);
       notify: !!req.body.notify,
     };
     UserModel.updateSettings(user);
-    exec(params.tourneyPath + "/dbsync/update_user.py " + ret.id);
     res.json({});
   }
 });
     res.json({});
   }
 });