mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Refactor
This commit is contained in:
parent
326abb4672
commit
598789e5a5
@ -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 - 1, 'days') :
|
||||
span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range - 1, '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;
|
||||
|
||||
// ログ取得
|
||||
|
Loading…
Reference in New Issue
Block a user