Remove test code

This commit is contained in:
nymkappa 2021-12-11 15:43:20 +09:00
parent fb152b6d7b
commit 7e7dbdbaf2

View File

@ -359,7 +359,6 @@ class Statistics {
try { try {
const connection = await DB.pool.getConnection(); const connection = await DB.pool.getConnection();
const query = this.getQueryForDays(1800, '1 WEEK'); // 30m interval const query = this.getQueryForDays(1800, '1 WEEK'); // 30m interval
await connection.query<any>({ sql: "SET time_zone = '+9:00';", timeout: this.queryTimeout });
const [rows] = await connection.query<any>({ sql: query, timeout: this.queryTimeout }); const [rows] = await connection.query<any>({ sql: query, timeout: this.queryTimeout });
connection.release(); connection.release();
return this.mapStatisticToOptimizedStatistic(rows); return this.mapStatisticToOptimizedStatistic(rows);