diff --git a/src/schema/schema_manager.py b/src/schema/schema_manager.py index e9d2c644..7be00fb3 100644 --- a/src/schema/schema_manager.py +++ b/src/schema/schema_manager.py @@ -417,7 +417,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req # Get the target trigger method defined in the schema_triggers.py module trigger_method_to_call = getattr(schema_triggers, trigger_method_name) - target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else ''; + target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else ''; logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}") # No return values for 'after_create_trigger' and 'after_update_trigger' @@ -442,7 +442,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req try: trigger_method_to_call = getattr(schema_triggers, trigger_method_name) - target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else ''; + target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else ''; logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}") # Will set the trigger return value as the property value by default @@ -490,7 +490,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req try: trigger_method_to_call = getattr(schema_triggers, trigger_method_name) - target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else ''; + target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else ''; logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}") # Will set the trigger return value as the property value by default