style: trim comments to load-bearing invariants only
This commit is contained in:
@@ -23,8 +23,6 @@ const addDays = (dateStr: string, days: number): string => {
|
||||
return utcDay(d);
|
||||
};
|
||||
|
||||
// PB stores autodates as "YYYY-MM-DD HH:MM:SS.sssZ" UTC; boundaries in the
|
||||
// same shape compare correctly in filters.
|
||||
const bound = (dateStr: string): string => `${dateStr} 00:00:00.000Z`;
|
||||
|
||||
const dayFilter = (dateStr: string): string =>
|
||||
@@ -91,8 +89,6 @@ export const runRollups = async (dateStr: string): Promise<number> => {
|
||||
return rollups.length;
|
||||
};
|
||||
|
||||
// The first run after UTC midnight recomputes yesterday once more so its
|
||||
// partial rows become final. Idempotent via the (date, metric, dim) key.
|
||||
export const runScheduledRollups = async (lastRunDay?: string): Promise<string> => {
|
||||
const today = utcDay(new Date());
|
||||
if (lastRunDay && lastRunDay !== today) {
|
||||
|
||||
Reference in New Issue
Block a user