Skip to content

Commit 1740dac

Browse files
committed
fix: webhook calls
1 parent b5339ac commit 1740dac

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

packages/prime-ui/src/routes/settings/WebhookCalls.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,23 @@ export const WebhookCalls = ({ match }: any) => (
1414
variables={{ id: match.params.webhookId }}
1515
fetchPolicy="network-only"
1616
query={gql`
17-
query allWebhookCalls($id: ID!) {
18-
allWebhookCalls(id: $id) {
17+
query Webhook(id:ID!) {
18+
Webhook(id:$id) {
1919
id
20-
success
21-
status
22-
request
23-
response
24-
executedAt
20+
calls {
21+
id
22+
success
23+
status
24+
request
25+
response
26+
executedAt
27+
}
2528
}
2629
}
2730
`}
2831
>
2932
{({ data, error, loading }) => {
30-
const items = get(data, 'allWebhookCalls', []);
33+
const items = get(data, 'Webhook.calls', []);
3134

3235
return (
3336
<Table

0 commit comments

Comments
 (0)