fix: prowlarr integration indexers status changed from id to indexerId (#1837)

This commit is contained in:
Yossi Hillali authored and GitHub committed 2025-01-02 20:53:27 +02:00
1 parent 6e21863d04
commit ee8831affe
2 files changed
+2 -2

No files matched your search

@@ -45,7 +45,7 @@ export class ProwlarrIntegration extends Integration {
); );
} }
const inactiveIndexerIds = new Set(statusResult.data.map((status: { id: number }) => status.id)); const inactiveIndexerIds = new Set(statusResult.data.map((status: { indexerId: number }) => status.indexerId));
const indexers: Indexer[] = indexersResult.data.map((indexer) => ({ const indexers: Indexer[] = indexersResult.data.map((indexer) => ({
id: indexer.id, id: indexer.id,
@@ -9,6 +9,6 @@ export const indexerResponseSchema = z.object({
export const statusResponseSchema = z.array( export const statusResponseSchema = z.array(
z.object({ z.object({
id: z.number(), indexerId: z.number(),
}), }),
); );