Restore removed parameter (#1832)

team_id was removed from send_webhook_event when other calls were still
adding it. Quick fix to restore it until we decide how to make use of
it.
This commit is contained in:
Michael Derynck 2023-04-26 16:38:16 -06:00 committed by GitHub
parent ddb3227ac0
commit e8806cedd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ TRIGGER_TYPE_TO_LABEL = {
@shared_dedicated_queue_retry_task(
autoretry_for=(Exception,), retry_backoff=True, max_retries=1 if settings.DEBUG else None
)
def send_webhook_event(trigger_type, alert_group_id, organization_id=None, user_id=None):
def send_webhook_event(trigger_type, alert_group_id, organization_id=None, team_id=None, user_id=None):
Webhooks = apps.get_model("webhooks", "Webhook")
webhooks_qs = Webhooks.objects.filter(
trigger_type=trigger_type,