Disable until fix
This commit is contained in:
parent
11cb1c5260
commit
460fa963b8
18
analytics.js
18
analytics.js
|
@ -47,15 +47,15 @@ module.exports = (req, res, next) => {
|
|||
}
|
||||
|
||||
if (req.headers['roblox-id']) { // Roblox game ID. Insert if not exists into gameAnalytics table, if /v1/ban/roblox/:id is called incirment globalAnalytics key=TOTAL_CHECKS
|
||||
pool.query(
|
||||
'INSERT INTO gameAnalytics (gameID) VALUES (?) ON DUPLICATE KEY UPDATE gameID = gameID;',
|
||||
[req.headers['roblox-id']],
|
||||
(error) => {
|
||||
if (error) {
|
||||
console.error('Error logging game analytics:', error);
|
||||
}
|
||||
}
|
||||
);
|
||||
// pool.query(
|
||||
// 'INSERT INTO gameAnalytics (gameID) VALUES (?) ON DUPLICATE KEY UPDATE gameID = gameID;',
|
||||
// [req.headers['roblox-id']],
|
||||
// (error) => {
|
||||
// if (error) {
|
||||
// console.error('Error logging game analytics:', error);
|
||||
// }
|
||||
// }
|
||||
// ); -- Disable until fix
|
||||
|
||||
if (path.includes('/v1/ban/roblox/')) {
|
||||
pool.query(
|
||||
|
|
Loading…
Reference in a new issue