From 6dce520bf30f138824d3eceedbfe42027c844307 Mon Sep 17 00:00:00 2001 From: Matt Frazier Date: Tue, 3 Dec 2024 15:23:38 -0500 Subject: [PATCH] Assume default for global_ notifications --- website/notifications/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/notifications/emails.py b/website/notifications/emails.py index 245baf9f0af..d26d43351d5 100644 --- a/website/notifications/emails.py +++ b/website/notifications/emails.py @@ -176,7 +176,7 @@ def get_user_subscriptions(user, event): if user_subscription: return {key: list(getattr(user_subscription, key).all().values_list('guids___id', flat=True)) for key in constants.NOTIFICATION_TYPES} else: - return {key: [] for key in constants.NOTIFICATION_TYPES} + return {key: [user._id] if (event in constants.USER_SUBSCRIPTIONS_AVAILABLE and key == 'email_transactional') else [] for key in constants.NOTIFICATION_TYPES} def get_node_lineage(node):