revert: re-apply all deletions and request handler simplifications

Restores the full PR changes after CodeRabbit review window.
This commit is contained in:
Thomas Camlong committed 2026-06-27 12:09:48 +02:00
1 parent e9611e8098
commit 45c58c967e
53 files changed
+52 -998

No files matched your search

+2 -6
View File
@@ -1,11 +1,9 @@
import dayjs from "dayjs";
import { createIntegrationAsync } from "@homarr/integrations";
import type { NavidromeDashboardData } from "@homarr/integrations/types";
import { createCachedIntegrationRequestHandler } from "./lib/cached-integration-request-handler";
import { createIntegrationRequestHandler } from "./lib/integration-request-handler";
export const navidromeRequestHandler = createCachedIntegrationRequestHandler<
export const navidromeRequestHandler = createIntegrationRequestHandler<
NavidromeDashboardData,
"navidrome",
Record<string, never>
@@ -14,6 +12,4 @@ export const navidromeRequestHandler = createCachedIntegrationRequestHandler<
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getDashboardDataAsync();
},
cacheDuration: dayjs.duration(10, "minutes"),
queryKey: "navidromeDashboard",
});