feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -14,7 +14,7 @@ function addDays(date: Date, days: number): Date {
|
||||
}
|
||||
|
||||
/**
|
||||
* Rolls up every not-yet-aggregated, fully-completed calendar day (UTC —
|
||||
* Rolls up every not-yet-aggregated, fully-completed calendar day (UTC -
|
||||
* matching the UTC-day salt rotation in lib/analytics/salt.ts) from raw
|
||||
* analytics-events into analytics-daily-stats, THEN purges raw events older
|
||||
* than the configured retention, THEN purges old daily-stats rows. Order
|
||||
@@ -22,7 +22,7 @@ function addDays(date: Date, days: number): Date {
|
||||
* deleted, or that history is gone for good.
|
||||
*
|
||||
* Only aggregates days that don't already have a daily-stats row (each day
|
||||
* is aggregated exactly once, ever) — safe to call this daily via
|
||||
* is aggregated exactly once, ever) - safe to call this daily via
|
||||
* app/(payload)/api/cron/analytics-cleanup/route.ts, and safe to re-run.
|
||||
*/
|
||||
export async function runAnalyticsCleanup(payload: Payload) {
|
||||
@@ -60,7 +60,7 @@ export async function runAnalyticsCleanup(payload: Payload) {
|
||||
{ createdAt: { less_than: dayEnd.toISOString() } },
|
||||
],
|
||||
},
|
||||
limit: 0, // no limit — pull the whole day, small-site scale
|
||||
limit: 0, // no limit - pull the whole day, small-site scale
|
||||
depth: 0,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user