From f59f35f7349a99f0753a245ca913c3d7cfeb5b80 Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Mon, 31 Jul 2023 15:19:25 +0200
Subject: [PATCH] BC short url key

---
 notifications_routing/router.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notifications_routing/router.py b/notifications_routing/router.py
index ca6d711..144a11f 100644
--- a/notifications_routing/router.py
+++ b/notifications_routing/router.py
@@ -65,7 +65,7 @@ class Router(megabus.Listener):
             str(OutputMessageKeys.CHANNEL_ID): channel[str(InputMessageKeys.ID)],
             str(OutputMessageKeys.CHANNEL_NAME): channel[str(InputMessageKeys.NAME)],
             str(OutputMessageKeys.CHANNEL_SLUG): channel[str(InputMessageKeys.SLUG)],
-            str(OutputMessageKeys.CHANNEL_SHORT_URL): channel[str(InputMessageKeys.SHORT_URL)],
+            str(OutputMessageKeys.CHANNEL_SHORT_URL): channel.get(str(InputMessageKeys.SHORT_URL)),
             str(OutputMessageKeys.PRIORITY): message_json[str(InputMessageKeys.PRIORITY)],
             str(OutputMessageKeys.CREATED_TIMESTAMP): convert_timestamp_to_local_timezone(
                 message_json[str(InputMessageKeys.SENT_AT)]
-- 
GitLab