diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 85949dee9..0b4ba58dc 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -558,6 +558,7 @@ def is_delivery_slow_for_providers( ProviderDetails ).outerjoin( Notification, and_( + Notification.notification_type == SMS_TYPE, Notification.sent_by == ProviderDetails.identifier, Notification.created_at >= created_at, Notification.sent_at.isnot(None),