MCPcopy
hub / github.com/simstudioai/sim / refetchDeploymentBoundary

Function refetchDeploymentBoundary

apps/sim/hooks/queries/deployments.ts:66–73  ·  view source on GitHub ↗
(queryClient: QueryClient, workflowId: string)

Source from the content-addressed store, hash-verified

64}
65
66export async function refetchDeploymentBoundary(queryClient: QueryClient, workflowId: string) {
67 await invalidateDeploymentQueries(queryClient, workflowId)
68 await Promise.all([
69 queryClient.refetchQueries({ queryKey: deploymentKeys.info(workflowId) }),
70 queryClient.refetchQueries({ queryKey: deploymentKeys.deployedState(workflowId) }),
71 queryClient.refetchQueries({ queryKey: workflowKeys.state(workflowId) }),
72 ])
73}
74
75export type WorkflowDeploymentInfo = DeploymentInfoResponse & {
76 deployedAt: string | null

Callers 2

useDeployWorkflowFunction · 0.85

Calls 3

infoMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected