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
|
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(
|
// pool.query(
|
||||||
'INSERT INTO gameAnalytics (gameID) VALUES (?) ON DUPLICATE KEY UPDATE gameID = gameID;',
|
// 'INSERT INTO gameAnalytics (gameID) VALUES (?) ON DUPLICATE KEY UPDATE gameID = gameID;',
|
||||||
[req.headers['roblox-id']],
|
// [req.headers['roblox-id']],
|
||||||
(error) => {
|
// (error) => {
|
||||||
if (error) {
|
// if (error) {
|
||||||
console.error('Error logging game analytics:', error);
|
// console.error('Error logging game analytics:', error);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
);
|
// ); -- Disable until fix
|
||||||
|
|
||||||
if (path.includes('/v1/ban/roblox/')) {
|
if (path.includes('/v1/ban/roblox/')) {
|
||||||
pool.query(
|
pool.query(
|
||||||
|
|
Loading…
Reference in a new issue