diff --git a/src/app/service/rule_service.py b/src/app/service/rule_service.py
index 86c7dfc..3251eee 100644
--- a/src/app/service/rule_service.py
+++ b/src/app/service/rule_service.py
@@ -60,9 +60,9 @@ def save_rule(self, newRule: Rule, admin_email: str, token: str):
[f"- {cond}" for cond in (getattr(newRule, "conditions", []) or [])]
)
- subject = f"Deleted Application Rule: {newRule.title}"
+ subject = f"New Application Rule: {newRule.title}"
body = (
- f"The following application rule has been deleted:
"
+ f"The following application rule has been created:
"
f"Title: {newRule.title}
"
f"Description: {newRule.description}
"
f"Conditions:
{conditions_formatted.replace(chr(10), '
') if conditions_formatted else 'None'}
"
@@ -137,7 +137,7 @@ def update_rule_by_id(
subject = f"Updated Application Rule: {updated_rule.title}"
body = (
- f"The application rule '{updated_rule.title}' has been updated.
"
+ f"The application rule '{old_rule.get('title')}' has been updated.
"
f"--- OLD RULE ---
"
f"Title: {old_rule.get('title')}
"
f"Description: {old_rule.get('description')}
"