Only save all process models when a new bpmn file is added (#1725)

This commit is contained in:
jbirddog 2024-06-12 14:50:08 -04:00 committed by GitHub
parent a63bba7257
commit 613d09c958
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ def _create_or_update_process_model_file(
file.file_contents_hash = file_contents_hash
_commit_and_push_to_git(f"{message_for_git_commit} {process_model_identifier}/{file.name}")
if is_new_file:
if is_new_file and file.name.endswith(".bpmn"):
DataSetupService.save_all_process_models()
return make_response(jsonify(file), http_status_to_return)