refactor: Make acting_user a mandatory kwarg for do_change_default_sending_stream.

This commit is contained in:
shanukun
2021-04-08 14:20:37 +05:30
committed by Tim Abbott
parent 6b8dfc2888
commit 8f70386df3
2 changed files with 3 additions and 3 deletions

View File

@@ -4114,7 +4114,7 @@ def do_change_plan_type(
def do_change_default_sending_stream(
user_profile: UserProfile, stream: Optional[Stream], acting_user: Optional[UserProfile] = None
user_profile: UserProfile, stream: Optional[Stream], *, acting_user: Optional[UserProfile]
) -> None:
old_value = user_profile.default_sending_stream_id
user_profile.default_sending_stream = stream