fix: prowlarr integration indexers status changed from id to indexerId (#1837)
This commit is contained in:
@@ -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(),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user