actions: Remove realm argument to internal_send_private_message.

The argument is redundant.
This commit is contained in:
Mateusz Mandera
2021-02-18 19:58:04 +01:00
committed by Tim Abbott
parent a652573169
commit 09fc79f911
10 changed files with 9 additions and 20 deletions

View File

@@ -769,9 +769,7 @@ def approve_sponsorship(realm: Realm) -> None:
f"Your organization's request for sponsored hosting has been approved! {emoji}.\n"
f"You have been upgraded to {plan_name}, free of charge."
)
internal_send_private_message(
billing_admin.realm, notification_bot, billing_admin, message
)
internal_send_private_message(notification_bot, billing_admin, message)
def get_discount_for_realm(realm: Realm) -> Optional[Decimal]: