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

Function computeNeedsRedeployment

apps/sim/app/api/workflows/utils.ts:39–45  ·  view source on GitHub ↗
(
  currentSnapshot: WorkflowState | null | undefined,
  activeState: WorkflowState | null | undefined
)

Source from the content-addressed store, hash-verified

37 * side is missing.
38 */
39export function computeNeedsRedeployment(
40 currentSnapshot: WorkflowState | null | undefined,
41 activeState: WorkflowState | null | undefined
42): boolean {
43 if (!activeState || !currentSnapshot) return false
44 return hasWorkflowChanged(currentSnapshot, activeState)
45}
46
47export async function checkNeedsRedeployment(workflowId: string): Promise<boolean> {
48 const [active] = await db

Callers 2

checkNeedsRedeploymentFunction · 0.85

Calls 1

hasWorkflowChangedFunction · 0.90

Tested by

no test coverage detected