chore(backend): log chart update

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-31 18:33:28 +09:00
parent 52cd2bb2f9
commit bbed86162f
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
1 changed files with 1 additions and 0 deletions

View File

@ -431,6 +431,7 @@ export default abstract class Chart<T extends Schema> {
// これを回避するための実装は複雑になりそうなため、一旦保留。
const update = async (logHour: RawRecord<T>, logDay: RawRecord<T>): Promise<void> => {
console.log(logHour, logDay);
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)) {