1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 16:28:12 +09:00

チャートログの取得範囲の修正 (#5923)

This commit is contained in:
fuyu 2020-03-07 00:28:21 +09:00 committed by GitHub
parent 65503bc68d
commit 99384b4c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,8 +382,8 @@ export default abstract class Chart<T extends Record<string, any>> {
const [y, m, d, h] = this.getCurrentDate();
const gt =
span == 'day' ? subtractTimespan(DateUTC([y, m, d]), range, 'days') :
span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range, 'hours') :
span == 'day' ? subtractTimespan(DateUTC([y, m, d]), range - 1, 'days') :
span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range - 1, 'hours') :
null as never;
// ログ取得