refactor: Make acting_user a mandatory kwarg for do_set_realm_notifications_stream.

This commit is contained in:
shanukun
2021-03-08 09:54:00 +05:30
committed by Tim Abbott
parent 0267ba54b2
commit 00d998b955
2 changed files with 5 additions and 5 deletions

View File

@@ -908,10 +908,7 @@ def do_set_realm_message_editing(
def do_set_realm_notifications_stream(
realm: Realm,
stream: Optional[Stream],
stream_id: int,
acting_user: Optional[UserProfile] = None,
realm: Realm, stream: Optional[Stream], stream_id: int, *, acting_user: Optional[UserProfile]
) -> None:
old_value = realm.notifications_stream_id
realm.notifications_stream = stream