diff --git a/server/api/stats/global.ts b/server/api/stats/global.ts index 5a6b852..9973c17 100644 --- a/server/api/stats/global.ts +++ b/server/api/stats/global.ts @@ -1,6 +1,6 @@ +import consola from "consola"; import type { GlobalStats } from "~~/server/utils/processing/global/types"; import { getLatestGlobalStats } from "~~/server/utils/storage"; -import consola from "consola"; export default defineCachedEventHandler( async (event): Promise => { diff --git a/server/api/stats/time/projects.ts b/server/api/stats/time/projects.ts index d15c6b7..18d7e6c 100644 --- a/server/api/stats/time/projects.ts +++ b/server/api/stats/time/projects.ts @@ -33,7 +33,7 @@ export default defineCachedEventHandler( } return exportStatsOverTime( - query.mode as "all" | "major" | "minor", + query.mode as "all" | "major" | "minor", query.type, query.exclusive === "true", new Date(), diff --git a/server/utils/export/globalStats.ts b/server/utils/export/globalStats.ts index b5d4e19..0bba949 100644 --- a/server/utils/export/globalStats.ts +++ b/server/utils/export/globalStats.ts @@ -1,6 +1,6 @@ import type { GlobalStats } from "~~/server/utils/processing/global/types"; -import { dateToFormatted, keyToDate } from "~~/utils/date"; import { getGlobalStats } from "~~/server/utils/storage"; +import { dateToFormatted, keyToDate } from "~~/utils/date"; export async function exportGlobalStatsOverTime( firstDateKey: string, diff --git a/server/utils/export/projectStats.ts b/server/utils/export/projectStats.ts index 1148a90..55190f6 100644 --- a/server/utils/export/projectStats.ts +++ b/server/utils/export/projectStats.ts @@ -3,11 +3,11 @@ import type { ProjectStats, ProjectStatsValue, } from "~~/server/utils/processing/projects/types"; -import { dateToFormatted } from "~~/utils/date"; import { getLatestProjectStats, getProjectStats, } from "~~/server/utils/storage"; +import { dateToFormatted } from "~~/utils/date"; // maps database data to a format usable by the frontend function mapStats(