api: Rename user webhook mutations
2 files changed, 6 insertions(+), 6 deletions(-)

M api/graph/schema.graphqls
M api/graph/schema.resolvers.go
M api/graph/schema.graphqls +2 -2
@@ 428,7 428,7 @@ type Mutation {
   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 @@ type Mutation {
   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.

          
M api/graph/schema.resolvers.go +4 -4
@@ 398,8 398,8 @@ func (r *mutationResolver) DeleteACL(ctx
 	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 @@ func (r *mutationResolver) CreateWebhook
 	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)