Add hero representation to published_representations

Without this SiteSync of hero versions wouldn't work
This commit is contained in:
Petr Kalis 2025-07-01 19:04:24 +02:00
parent 48bc2cea45
commit 242aa568f4

View file

@ -494,6 +494,10 @@ class IntegrateHeroVersion(
):
shutil.rmtree(backup_hero_publish_dir)
instance.data["published_representations"][repre_entity["id"]] = (
repre_entity
)
except Exception:
if (
backup_hero_publish_dir is not None and