refactor: Make acting_user a mandatory kwarg for bulk_add_subscriptions.

This commit is contained in:
shanukun
2021-04-02 22:03:28 +05:30
committed by Tim Abbott
parent 790085832c
commit 0bf067b681
10 changed files with 27 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ def create_integration_stream(integration: WebhookIntegration, bot: UserProfile)
assert isinstance(bot.bot_owner, UserProfile)
realm = bot.bot_owner.realm
stream, created = create_stream_if_needed(realm, integration.stream_name)
bulk_add_subscriptions(realm, [stream], [bot, bot.bot_owner])
bulk_add_subscriptions(realm, [stream], [bot, bot.bot_owner], acting_user=bot)
def get_integration(integration_name: str) -> WebhookIntegration: