fix: COLUMNS uppercase → DOCUMENT_ID/ID/TYPE (v1.0.62)

This commit is contained in:
2026-06-19 10:58:20 +04:00
parent b5be3f96c7
commit 27a43725cd
+5 -5
View File
@@ -61,7 +61,7 @@
<body> <body>
<div class="topbar"> <div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes"> <img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.61 — Lucee</span></span> <span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.62 — Lucee</span></span>
</div> </div>
<div class="content"> <div class="content">
@@ -335,10 +335,10 @@ async function refreshSupps() {
data.COLUMNS.forEach(function(c, ci) { supp[c] = r[ci]; }); data.COLUMNS.forEach(function(c, ci) { supp[c] = r[ci]; });
console.log('refreshSupps: supp=', supp); console.log('refreshSupps: supp=', supp);
for (var i = 0; i < fileQueue.length; i++) { for (var i = 0; i < fileQueue.length; i++) {
console.log(' cmp: doc_id=' + fileQueue[i].doc_id + ' vs document_id=' + supp.document_id + ' match=' + (fileQueue[i].doc_id === supp.document_id)); console.log(' cmp: doc_id=' + fileQueue[i].doc_id + ' vs DOCUMENT_ID=' + supp.DOCUMENT_ID + ' match=' + (fileQueue[i].doc_id === supp.DOCUMENT_ID));
if (fileQueue[i].doc_id === supp.document_id) { if (fileQueue[i].doc_id === supp.DOCUMENT_ID) {
fileQueue[i].supp_id = supp.id; fileQueue[i].supp_id = supp.ID;
fileQueue[i].supp_type = supp.type; fileQueue[i].supp_type = supp.TYPE;
} }
} }
}); });