(params: {
workflowId: string
workflow: Record<string, unknown>
requestId: string
deploymentVersionId: string
/**
* If true, skip external subscription cleanup (already done by saveTriggerWebhooksForDeploy).
* Only deletes DB records.
*/
skipExternalCleanup?: boolean
strictExternalCleanup?: boolean
})
| 203 | } |
| 204 | |
| 205 | async function cleanupDeploymentVersion(params: { |
| 206 | workflowId: string |
| 207 | workflow: Record<string, unknown> |
| 208 | requestId: string |
| 209 | deploymentVersionId: string |
| 210 | /** |
| 211 | * If true, skip external subscription cleanup (already done by saveTriggerWebhooksForDeploy). |
| 212 | * Only deletes DB records. |
| 213 | */ |
| 214 | skipExternalCleanup?: boolean |
| 215 | strictExternalCleanup?: boolean |
| 216 | }): Promise<void> { |
| 217 | const { |
| 218 | workflowId, |
| 219 | workflow, |
| 220 | requestId, |
| 221 | deploymentVersionId, |
| 222 | skipExternalCleanup = false, |
| 223 | strictExternalCleanup = false, |
| 224 | } = params |
| 225 | await cleanupWebhooksForWorkflow( |
| 226 | workflowId, |
| 227 | workflow, |
| 228 | requestId, |
| 229 | deploymentVersionId, |
| 230 | skipExternalCleanup, |
| 231 | strictExternalCleanup |
| 232 | ) |
| 233 | await deleteSchedulesForWorkflow(workflowId, db, deploymentVersionId) |
| 234 | } |
nothing calls this directly
no test coverage detected