diff --git a/src/spiffworkflow_backend/routes/process_api_blueprint.py b/src/spiffworkflow_backend/routes/process_api_blueprint.py index 78ea7b2d..bea97f05 100644 --- a/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -354,7 +354,7 @@ def process_list() -> Any: This includes processes that are not the primary process - helpful for finding possible call activities. """ - references = SpecReferenceCache.query.filter_by(type="process") + references = SpecReferenceCache.query.filter_by(type="process").all() return SpecReferenceSchema(many=True).dump(references) diff --git a/src/spiffworkflow_backend/services/data_setup_service.py b/src/spiffworkflow_backend/services/data_setup_service.py index 3563e2b3..412c4b82 100644 --- a/src/spiffworkflow_backend/services/data_setup_service.py +++ b/src/spiffworkflow_backend/services/data_setup_service.py @@ -27,9 +27,9 @@ class DataSetupService: current_app.logger.debug("DataSetupService.save_all_process_models() start") failing_process_models = [] process_models = ProcessModelService().get_process_models() + SpecFileService.clear_caches() for process_model in process_models: current_app.logger.debug(f"Process Model: {process_model.display_name}") - SpecFileService.clear_caches() try: refs = SpecFileService.get_references_for_process(process_model) for ref in refs: