diff --git a/oarepo_communities/services/components/default_workflow.py b/oarepo_communities/services/components/default_workflow.py index 40a530a..31f5b08 100644 --- a/oarepo_communities/services/components/default_workflow.py +++ b/oarepo_communities/services/components/default_workflow.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING -from invenio_records_resources.services.records.components.base import ServiceComponent +from oarepo_workflows.services.components.workflow import WorkflowSetupComponent from oarepo_communities.proxies import current_oarepo_communities @@ -12,7 +12,9 @@ from flask_principal import Identity -class CommunityDefaultWorkflowComponent(ServiceComponent): +class CommunityDefaultWorkflowComponent(WorkflowSetupComponent): + # affects all components, so should be placed as the first one + affects = "*" def create( self, identity: Identity, data: dict[str, Any] = None, **kwargs: Any diff --git a/setup.cfg b/setup.cfg index e1577e2..ecf93f3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-communities -version = 5.1.5 +version = 5.1.6 description = authors = Ronald Krist readme = README.md