27 lines
688 B
JSON
27 lines
688 B
JSON
|
|
{
|
||
|
|
"name": "update_ocr_error",
|
||
|
|
"type": "n8n-nodes-base.postgres",
|
||
|
|
"typeVersion": 2.6,
|
||
|
|
"position": [3850, 1850],
|
||
|
|
"parameters": {
|
||
|
|
"operation": "executeQuery",
|
||
|
|
"query": "-- Обновляем статус OCR при ошибке\nUPDATE clpr_claim_documents\nSET \n ocr_status = 'error',\n ocr_error = '{{ $json.error || \"OCR processing failed\" }}',\n ocr_processed_at = NOW()\nWHERE id = '{{ $('files').item.json.claim_document_id }}'::uuid\nRETURNING id, claim_id, ocr_status, ocr_error;",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"credentials": {
|
||
|
|
"postgres": {
|
||
|
|
"id": "sGJ0fJhU8rz88w3k",
|
||
|
|
"name": "timeweb_bd"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"onError": "continueRegularOutput"
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|