From adbf0e82c7dfd6c2b64c1d6816d01006c8beb895 Mon Sep 17 00:00:00 2001 From: Carina Antunes <carina.oliveira.antunes@cern.ch> Date: Wed, 30 Mar 2022 14:11:19 +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