SIENTIAPDE-1184

fix: update notification IDs for error reporting in Formatters class

- Changed notification IDs for error reports related to schedule creation, update, and deletion to include the suffix '_ERROR' for better clarity in error handling.
This commit is contained in:
vitor-aignosi
2025-08-12 14:12:52 -03:00
parent 8537eb515b
commit 5477f68b6b

View File

@@ -391,7 +391,7 @@ class Formatters(BaseActivity):
self.send_error_report(
metadata=metadata,
message=f"Failed to create schedules: \n {', '.join(error_keys)}",
notification_id="REPORT_ORCHESTRATION_CREATED_SCHEDULES",
notification_id="REPORT_ORCHESTRATION_CREATED_SCHEDULES_ERROR",
attachment=created_schedules
)
@@ -411,7 +411,7 @@ class Formatters(BaseActivity):
self.send_error_report(
metadata=metadata,
message=f"Failed to update schedules: \n {', '.join(error_keys)}",
notification_id="REPORT_ORCHESTRATION_UPDATED_SCHEDULES",
notification_id="REPORT_ORCHESTRATION_UPDATED_SCHEDULES_ERROR",
attachment=updated_schedules
)
@@ -430,7 +430,7 @@ class Formatters(BaseActivity):
self.send_error_report(
metadata=metadata,
message=f"Failed to delete schedules: \n {', '.join(error_keys)}",
notification_id="REPORT_ORCHESTRATION_DELETED_SCHEDULES",
notification_id="REPORT_ORCHESTRATION_DELETED_SCHEDULES_ERROR",
attachment=deleted_schedules
)