}
});
if (toRemove.length > 0) {
+ const remArg = toRemove.join(",");
db.run(
"DELETE FROM Users " +
- "WHERE id IN (" + toRemove.join(",") + ")"
+ "WHERE id IN (" + remArg + ")"
);
+ // Update tournament DB:
+ exec(params.tourneyPath + "/dbsync/delete_users.py " + remArg);
}
});
});
};
setAndSendLoginToken("Welcome to " + params.siteURL, user);
// Update tournament DB (TODO: if error, log it)
- exec(params.tourneyPath + "/sync_users.py");
+ exec(params.tourneyPath + "/dbsync/update_users.py");
res.json({});
}
});