diff --git a/n8n-workflow.json b/n8n-workflow.json index 46f6e8c..56f641e 100644 --- a/n8n-workflow.json +++ b/n8n-workflow.json @@ -1907,7 +1907,7 @@ }, { "parameters": { - "jsCode": "// Build remove old image command (fire and forget)\nconst currentImageId = $json.currentImageId;\n\n// Skip if no image ID (error case)\nif (!currentImageId) {\n return { json: { skip: true } };\n}\n\n// Remove the old image - ignore errors (image might be used by another container)\nreturn {\n json: {\n cmd: `curl -s -o /dev/null -w \"%{http_code}\" --unix-socket /var/run/docker.sock -X DELETE 'http://localhost/v1.47/images/${currentImageId}?force=false'`,\n currentImageId\n }\n};" + "jsCode": "// Build remove old image command (fire and forget)\n// Reference Format Update Result since Telegram node doesn't pass through our data\nconst currentImageId = $('Format Update Result').item.json.currentImageId;\n\n// Skip if no image ID (error case) - use no-op command\nif (!currentImageId) {\n return { json: { cmd: 'true', skip: true } };\n}\n\n// Remove the old image - ignore errors (image might be used by another container)\nreturn {\n json: {\n cmd: `curl -s -o /dev/null -w \"%{http_code}\" --unix-socket /var/run/docker.sock -X DELETE 'http://localhost/v1.47/images/${currentImageId}?force=false'`,\n currentImageId\n }\n};" }, "id": "code-build-remove-image", "name": "Build Remove Image Command",