mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Ensure get_current_provider only returns active
This commit is contained in:
@@ -36,7 +36,8 @@ def get_alternative_sms_provider(identifier):
|
||||
|
||||
def get_current_provider(notification_type):
|
||||
return ProviderDetails.query.filter_by(
|
||||
notification_type=notification_type
|
||||
notification_type=notification_type,
|
||||
active=True
|
||||
).order_by(
|
||||
asc(ProviderDetails.priority)
|
||||
).first()
|
||||
|
||||
Reference in New Issue
Block a user