# HG changeset patch # User Thorben Günther # Date 1679103534 -3600 # Sat Mar 18 02:38:54 2023 +0100 # Node ID 1639be5c096b80451831a247b7abbfd3840feb9a # Parent ba6cd3d3dec57ae8fbdbcfc0c1aa7ffdd7f8d31e api: Rename user webhook mutations diff --git a/api/graph/schema.graphqls b/api/graph/schema.graphqls --- a/api/graph/schema.graphqls +++ b/api/graph/schema.graphqls @@ -428,7 +428,7 @@ may be used to access details of the event which trigged the webhook. The query may not make any mutations. """ - createWebhook(config: UserWebhookInput!): WebhookSubscription! + createUserWebhook(config: UserWebhookInput!): WebhookSubscription! """ Deletes a user webhook. Any events already queued may still be @@ -438,7 +438,7 @@ Manually deleting a webhook configured by a third-party client may cause unexpected behavior with the third-party integration. """ - deleteWebhook(id: Int!): WebhookSubscription! + deleteUserWebhook(id: Int!): WebhookSubscription! """ Deletes the authenticated user's account. Internal use only. diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go --- a/api/graph/schema.resolvers.go +++ b/api/graph/schema.resolvers.go @@ -398,8 +398,8 @@ return &acl, nil } -// CreateWebhook is the resolver for the createWebhook field. -func (r *mutationResolver) CreateWebhook(ctx context.Context, config model.UserWebhookInput) (model.WebhookSubscription, error) { +// CreateUserWebhook is the resolver for the createUserWebhook field. +func (r *mutationResolver) CreateUserWebhook(ctx context.Context, config model.UserWebhookInput) (model.WebhookSubscription, error) { schema := server.ForContext(ctx).Schema if err := corewebhooks.Validate(schema, config.Query); err != nil { return nil, err @@ -473,8 +473,8 @@ return &sub, nil } -// DeleteWebhook is the resolver for the deleteWebhook field. -func (r *mutationResolver) DeleteWebhook(ctx context.Context, id int) (model.WebhookSubscription, error) { +// DeleteUserWebhook is the resolver for the deleteUserWebhook field. +func (r *mutationResolver) DeleteUserWebhook(ctx context.Context, id int) (model.WebhookSubscription, error) { var sub model.UserWebhookSubscription filter, err := corewebhooks.FilterWebhooks(ctx)