From 39d9468278b8f9dcfe75c8ea2be8c76beafd438f Mon Sep 17 00:00:00 2001
From: chausman <chausman@nrao.edu>
Date: Wed, 21 Jun 2023 09:36:27 -0600
Subject: [PATCH] make sure email lists are actually lists

---
 .../workspaces/notification/services/notification_service.py   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shared/workspaces/workspaces/notification/services/notification_service.py b/shared/workspaces/workspaces/notification/services/notification_service.py
index ad36bfb21..19db8b90d 100644
--- a/shared/workspaces/workspaces/notification/services/notification_service.py
+++ b/shared/workspaces/workspaces/notification/services/notification_service.py
@@ -71,7 +71,8 @@ class NotificationService(NotificationServiceIF):
         if isinstance(parameters["destination_email"], list):
             receiver_emails = parameters["destination_email"]
         else:
-            receiver_emails = [parameters["destination_email"]]
+            # sometimes the list gets passed in as a string, split it if needed
+            receiver_emails = parameters["destination_email"].split(",")
 
         # Let's not send emails into the void
         if not receiver_emails:
-- 
GitLab