fix(sync): Unconditionally handle deleting custom formats when enabled.

When `delete_old_custom_formats` is enabled, deletion is no longer
skipped when there are no created or updated custom formats.

Fixes #237
pull/270/head
Robert Dailey 7 months ago
parent b23f0977f6
commit d05206f4be

@ -42,6 +42,7 @@ changes you may need to make.
- CLI: CFs with no Trash ID will no longer be displayed when running the `list custom-formats` - CLI: CFs with no Trash ID will no longer be displayed when running the `list custom-formats`
command (#229). command (#229).
- Docker: Support running the container in read-only mode (#231). - Docker: Support running the container in read-only mode (#231).
- Sync: Sometimes CFs weren't deleted even with `delete_old_custom_formats` enabled (#237).
## [6.0.2] - 2023-10-20 ## [6.0.2] - 2023-10-20

@ -13,12 +13,7 @@ public class CustomFormatLogPhase(ILogger log) : ILogPipelinePhase<CustomFormatP
context.InvalidFormats); context.InvalidFormats);
} }
if (context.ConfigOutput.Count == 0) // Do not exit when the config has zero custom formats. We still may need to delete old custom formats.
{
log.Debug("No custom formats to process");
return true;
}
return false; return false;
} }

Loading…
Cancel
Save