api/graph: Conform to WebhookSubscription

This commit is contained in:
Adnan Maolood 2022-06-16 13:50:11 -04:00 committed by Drew DeVault
parent e93dff9824
commit c116c0db22
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ type UserWebhookSubscription implements WebhookSubscription {
url: String!
client: OAuthClient @private
deliveries(cursor: Cursor): WebhookDeliveryCursor!
sample(event: WebhookEvent): String!
sample(event: WebhookEvent!): String!
}
type TrackerWebhookSubscription implements WebhookSubscription {

View File

@ -3293,7 +3293,7 @@ func (r *userWebhookSubscriptionResolver) Deliveries(ctx context.Context, obj *m
return &model.WebhookDeliveryCursor{deliveries, cursor}, nil
}
func (r *userWebhookSubscriptionResolver) Sample(ctx context.Context, obj *model.UserWebhookSubscription, event *model.WebhookEvent) (string, error) {
func (r *userWebhookSubscriptionResolver) Sample(ctx context.Context, obj *model.UserWebhookSubscription, event model.WebhookEvent) (string, error) {
// TODO
panic(fmt.Errorf("not implemented"))
}