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

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

View File

@@ -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,

View File

@@ -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(),
}), }),
); );