mutation-fix-2
This commit is contained in:
parent
354d9c20a3
commit
f3c06e1969
|
@ -30,7 +30,7 @@ async def check_webhook_existence() -> bool:
|
|||
variables = {"params": {}}
|
||||
# https://docs.authorizer.dev/core/graphql-api#_webhooks
|
||||
gql = {
|
||||
"query": f"query {operation}($params: GetWebhooksRequest!)"
|
||||
"query": f"query {operation}($params: PaginatedInput!)"
|
||||
+ "{"
|
||||
+ f"{query_name}(params: $params) {{ webhooks {{ id event_name endpoint }} }} "
|
||||
+ "}",
|
||||
|
@ -68,7 +68,7 @@ async def create_webhook_endpoint():
|
|||
}
|
||||
}
|
||||
gql = {
|
||||
"mutation": f"mutation {operation}($params: AddWebhookRequest!)"
|
||||
"query": f"mutation {operation}($params: AddWebhookRequest!)"
|
||||
+ "{"
|
||||
+ f"{query_name}(params: $params) {{ message }} "
|
||||
+ "}",
|
||||
|
|
Loading…
Reference in New Issue
Block a user