This commit is contained in:
Alex Holliday
2026-01-31 01:32:33 +00:00
parent 53d5ae2251
commit f420044b64
@@ -6,7 +6,7 @@ import type { IIncidentsRepository, IMonitorsRepository, IUsersRepository } from
import type { Incident } from "@/types/index.js";
const dateRangeLookup: Record<string, Date | undefined> = {
recent: new Date(new Date().setDate(new Date().getDate() - 2)),
recent: new Date(new Date().setHours(new Date().getHours() - 2)),
hour: new Date(new Date().setHours(new Date().getHours() - 1)),
day: new Date(new Date().setDate(new Date().getDate() - 1)),
week: new Date(new Date().setDate(new Date().getDate() - 7)),