MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / back

Function back

__tests__/telemetry-services.test.ts:1630–1630  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

1628 // Eight days of machines, the window ending Oct 4 (counted on Oct 8).
1629 const END = '2026-10-04';
1630 const back = (n: number): string => utcDay(Date.parse(`${END}T00:00:00Z`) - n * 24 * 60 * MINUTE);
1631 const add = (machine: string, days: number[], opts: { installed?: number; container?: boolean; ci?: boolean } = {}): void => {
1632 for (const n of days) {
1633 db.prepare('INSERT INTO machine_days (machine_id, day, prod, container) VALUES (?, ?, ?, ?)').run(machine, back(n), opts.ci ? 0n : 1n, opts.container ? 1n : 0n);

Callers 2

addFunction · 0.70

Calls 2

utcDayFunction · 0.90
parseMethod · 0.80

Tested by

no test coverage detected