Skip to content

Commit

Permalink
Merge pull request #153 from raydak-labs/fix/bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark authored Jan 13, 2025
2 parents 5e13282 + 10d7bdb commit 2100168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ export const mergeConfigsAndTemplates = async (
quality_profiles: [],
};

// HINT: we assume customFormatDefinitions only exist in RECYCLARR
if (instanceConfig.include) {
const mappedIncludes = instanceConfig.include.reduce<{ recyclarr: InputConfigIncludeItem[]; trash: InputConfigIncludeItem[] }>(
(previous, current) => {
Expand All @@ -207,10 +206,11 @@ export const mergeConfigsAndTemplates = async (
previous.trash.push(current);
break;
case "RECYCLARR":
case undefined:
previous.recyclarr.push(current);
break;
default:
logger.warn(`Unknown type for template requested: ${(current as any).type}. Ignoring.`);
logger.warn(`Unknown source type for template requested: '${current.source}'. Ignoring.`);
}

return previous;
Expand Down

0 comments on commit 2100168

Please sign in to comment.