(workflowId: string, blockId: string, enabled = true)
| 41 | } |
| 42 | |
| 43 | export function useWebhookQuery(workflowId: string, blockId: string, enabled = true) { |
| 44 | return useQuery({ |
| 45 | queryKey: webhookKeys.byBlock(workflowId, blockId), |
| 46 | queryFn: ({ signal }) => fetchWebhooks(workflowId, blockId, signal), |
| 47 | enabled: enabled && Boolean(workflowId && blockId), |
| 48 | staleTime: 60 * 1000, |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | interface ReactivateWebhookVariables { |
| 53 | webhookId: string |
no test coverage detected