From 7b7e62bad00dab264ce172a523ddc6f2c2ec7b2e Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Wed, 30 Mar 2022 14:06:31 +0200
Subject: [PATCH] hotfix: post notification body change'

---
 .../processors/email_gateway/processor.py          | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/notifications_consumer/processors/email_gateway/processor.py b/notifications_consumer/processors/email_gateway/processor.py
index c4efc06..71a0dec 100644
--- a/notifications_consumer/processors/email_gateway/processor.py
+++ b/notifications_consumer/processors/email_gateway/processor.py
@@ -82,14 +82,12 @@ class MailGatewayProcessor(Processor):
     def send_notification(content, subject, channel_id, priority, sender):
         """Send Notification to Backend."""
         message = {
-            "notification": {
-                "body": content,
-                "summary": subject,
-                "target": channel_id,
-                "priority": priority,
-                "sender": sender,
-                "source": Config.NOTIFICATION_SOURCE,
-            }
+            "body": content,
+            "summary": subject,
+            "target": channel_id,
+            "priority": priority,
+            "sender": sender,
+            "source": Config.NOTIFICATION_SOURCE,
         }
 
         return requests.post(
-- 
GitLab