fix date sort

This commit is contained in:
Emily
2024-12-02 15:53:15 +01:00
parent b700b96191
commit 30e428a8dc
2 changed files with 8 additions and 3 deletions

View File

@@ -13,11 +13,13 @@ export default defineEventHandler(async event => {
const cacheExp = 60;
return await Redis.useCacheV2(cacheKey, cacheExp, async () => {
const timelineData = await executeTimelineAggregation({
projectId: project_id,
model: VisitModel,
from, to, slice
from, to, slice,
});
const timelineFilledMerged = fillAndMergeTimelineAggregationV2(timelineData, slice, from, to);
return timelineFilledMerged;