Skip to content

Commit 3851d22

Browse files
committed
fix: webhook
1 parent 8ade384 commit 3851d22

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

api/v1/server/handlers/v1/webhooks/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (w *V1WebhooksService) V1WebhookCreate(ctx echo.Context, request gen.V1Webh
5656

5757
w.config.Analytics.Enqueue(
5858
ctx.Request().Context(),
59-
analytics.WebhookWorker, analytics.Create,
59+
analytics.Webhook, analytics.Create,
6060
webhook.Name,
6161
nil,
6262
)

api/v1/server/handlers/v1/webhooks/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (w *V1WebhooksService) V1WebhookDelete(ctx echo.Context, request gen.V1Webh
2525

2626
w.config.Analytics.Enqueue(
2727
ctx.Request().Context(),
28-
analytics.WebhookWorker, analytics.Delete,
28+
analytics.Webhook, analytics.Delete,
2929
webhook.Name,
3030
nil,
3131
)

pkg/analytics/analytics.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ const (
1515
Token Resource = "api-token"
1616
Workflow Resource = "workflow"
1717

18-
Event Resource = "event"
19-
WorkflowRun Resource = "workflow-run"
20-
TaskRun Resource = "task-run"
21-
Worker Resource = "worker"
22-
RateLimit Resource = "rate-limit"
23-
WebhookWorker Resource = "webhook-worker"
24-
Log Resource = "log"
25-
StreamEvent Resource = "stream-event"
18+
Event Resource = "event"
19+
WorkflowRun Resource = "workflow-run"
20+
TaskRun Resource = "task-run"
21+
Worker Resource = "worker"
22+
RateLimit Resource = "rate-limit"
23+
Webhook Resource = "webhook"
24+
Log Resource = "log"
25+
StreamEvent Resource = "stream-event"
2626
)
2727

2828
type Action string

0 commit comments

Comments
 (0)