fix(overseerr): fix plexClient and libraryCache not being passed to sync

fix #363
This commit is contained in:
Tom Wheeler
2026-01-15 02:17:09 +13:00
parent 76db41b2ac
commit 9600cb245b
@@ -107,7 +107,12 @@ export class OverseerrCollectionSync extends BaseCollectionSync<'overseerr'> {
libraryCache
);
const { items: allItems, missingItems: allMissingItems } =
await this.mapSourceDataToItems(requests, config);
await this.mapSourceDataToItems(
requests,
config,
plexClient,
libraryCache
);
let result: SyncResult;
switch (config.subtype) {
@@ -252,7 +257,12 @@ export class OverseerrCollectionSync extends BaseCollectionSync<'overseerr'> {
libraryCache
);
const { items: allItems, missingItems: allMissingItems } =
await this.mapSourceDataToItems(requests, config);
await this.mapSourceDataToItems(
requests,
config,
plexClient,
libraryCache
);
// Process based on subtype using pre-fetched data
switch (config.subtype) {