Update provider history when auto switching provider

This commit is contained in:
Imdad Ahad
2017-02-07 12:38:56 +00:00
parent 85b441b445
commit c512b31afd
2 changed files with 6 additions and 9 deletions

View File

@@ -59,7 +59,8 @@ def dao_switch_sms_provider_to_provider_with_identifier(identifier):
if not provider_is_already_primary_or_inactive(current_provider, new_provider, identifier):
update_provider_priorities(current_provider, new_provider)
db.session.add_all([current_provider, new_provider])
dao_update_provider_details(current_provider)
dao_update_provider_details(new_provider)
def get_provider_details_by_notification_type(notification_type):