mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
change update_provider_stats to use billable_units
updated tests etc, and removed some old tests that are no longer relevant
This commit is contained in:
@@ -82,7 +82,7 @@ def send_sms_to_provider(self, service_id, notification_id):
|
||||
notification_id,
|
||||
SMS_TYPE,
|
||||
provider.get_name(),
|
||||
content_char_count=template.replaced_content_count
|
||||
billable_units=notification.billable_units
|
||||
)
|
||||
|
||||
notification.sent_at = datetime.utcnow()
|
||||
@@ -164,7 +164,8 @@ def send_email_to_provider(self, service_id, notification_id):
|
||||
update_provider_stats(
|
||||
notification_id,
|
||||
EMAIL_TYPE,
|
||||
provider.get_name()
|
||||
provider.get_name(),
|
||||
billable_units=1
|
||||
)
|
||||
notification.reference = reference
|
||||
notification.sent_at = datetime.utcnow()
|
||||
|
||||
Reference in New Issue
Block a user