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

@@ -1,12 +1,10 @@
import dayjs from "dayjs";
import type { IntegrationKindByCategory } from "@homarr/definitions";
import { createIntegrationAsync } from "@homarr/integrations";
import type { Indexer } from "@homarr/integrations/types";
import { createCachedIntegrationRequestHandler } from "./lib/cached-integration-request-handler";
import { createIntegrationRequestHandler } from "./lib/integration-request-handler";
export const indexerManagerRequestHandler = createCachedIntegrationRequestHandler<
export const indexerManagerRequestHandler = createIntegrationRequestHandler<
Indexer[],
IntegrationKindByCategory<"indexerManager">,
Record<string, never>
@@ -15,6 +13,4 @@ export const indexerManagerRequestHandler = createCachedIntegrationRequestHandle
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getIndexersAsync();
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "indexerManager",
});