chore(backend): log chart update

This commit is contained in:
Acid Chicken 2024-05-31 18:37:05 +09:00 committed by GitHub
parent 514a65e453
commit 4f264695d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -424,6 +424,7 @@ export default abstract class Chart<T extends Schema> {
// これを回避するための実装は複雑になりそうなため、一旦保留。 // これを回避するための実装は複雑になりそうなため、一旦保留。
const update = async (logHour: RawRecord<T>, logDay: RawRecord<T>): Promise<void> => { const update = async (logHour: RawRecord<T>, logDay: RawRecord<T>): Promise<void> => {
console.log(logHour, logDay);
const finalDiffs = {} as Record<string, number | string[]>; const finalDiffs = {} as Record<string, number | string[]>;
for (const diff of this.buffer.filter(q => q.group == null || (q.group === logHour.group)).map(q => q.diff)) { for (const diff of this.buffer.filter(q => q.group == null || (q.group === logHour.group)).map(q => q.diff)) {