mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
implementing snapshots
This commit is contained in:
@@ -60,7 +60,6 @@ export function fixMetrics(result: { data: MetricsTimeline[], from: string, to:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const allKeys = !options.advanced ? [] : Array.from(new Set(result.data.map((e: any) => e[options.advancedGroupKey])).values());
|
||||
|
||||
const fixed: any[] = allDates.map(matchDate => {
|
||||
@@ -85,6 +84,8 @@ export function fixMetrics(result: { data: MetricsTimeline[], from: string, to:
|
||||
return returnObject;
|
||||
});
|
||||
|
||||
console.log({ allKeys })
|
||||
|
||||
if (slice === 'day' || slice == 'hour') fixed.pop();
|
||||
|
||||
const data = fixed.map(e => e.count);
|
||||
|
||||
Reference in New Issue
Block a user