Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Aug 10, 2020
1 parent 7eada4b commit 090640a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/scenes/setup/WebhookIntegration.js
Expand Up @@ -90,9 +90,8 @@ export function WebhookIntegration() {
<Input
value={editedWebhook}
addonBefore="Webhook URL"
size="large"
onChange={(e) => setEditedWebhook(e.target.value)}
style={{ width: 500, marginBottom: '1rem', display: 'block' }}
style={{ maxWidth: '40rem', marginBottom: '1rem', display: 'block' }}
type="url"
placeholder="integration disabled"
/>
Expand Down
3 changes: 2 additions & 1 deletion posthog/tasks/webhooks.py
Expand Up @@ -2,6 +2,7 @@
from typing import Tuple

import requests
from celery import Task
from django.conf import settings

from posthog.celery import app
Expand Down Expand Up @@ -100,7 +101,7 @@ def determine_webhook_type(team: Team) -> str:


@app.task(bind=True, max_retries=3)
def post_event_to_webhook(self, event_id: int, site_url: str) -> None:
def post_event_to_webhook(self: Task, event_id: int, site_url: str) -> None:
try:
event = Event.objects.get(pk=event_id)
team = event.team
Expand Down

0 comments on commit 090640a

Please sign in to comment.