fix(all): New templates.

This commit is contained in:
Rodrigo Rodriguez 2024-08-24 15:52:23 -03:00
parent 0cfdd951b5
commit c4b336dcd7
3 changed files with 8 additions and 7 deletions

View file

@ -249,10 +249,6 @@
"tslint": "6.1.3",
"vitest": "1.6.0"
},
"optionalDependencies": {
"@img/sharp-linux-arm": "0.33.4",
"@img/sharp-win32-x64": "0.33.4"
},
"eslintConfig": {
"env": {
"node": true,

View file

@ -1313,9 +1313,9 @@ export class KeywordsExpressions {
return `
if (Array.isArray(${fields[0]})){
await sys.saveToStorageBatch({pid: pid, table: ${table}, rows:${fields[0]} })
await sys.saveToStorageBatch({pid: pid, table: '${table}', rows:${fields[0]} })
}else{
await sys.saveToStorage({pid: pid, table: ${table}, fieldsValues: [${fieldsAsText}], fieldsNames: [${fieldsNames}] })
await sys.saveToStorage({pid: pid, table: '${table}', fieldsValues: [${fieldsAsText}], fieldsNames: [${fieldsNames}] })
}
${fields[0].replace(/\`/g, '')} = null;
`;

View file

@ -769,6 +769,7 @@ export class SystemKeywords {
});
rowsDest.push(dst);
dst = null;
row = null;
});
GBLogEx.info(min, `SAVE '${table}': ${rows.length} row(s).`);
@ -813,6 +814,7 @@ export class SystemKeywords {
i++;
});
dst = null;
let item;
await retry(
@ -1380,7 +1382,7 @@ export class SystemKeywords {
if (filterAcceptCount === filters.length) {
rowCount++;
let row = {};
const xlRow = rows[foundIndex];
let xlRow = rows[foundIndex];
let hasValue = false;
for (let colIndex = 0; colIndex < xlRow.length; colIndex++) {
const propertyName = header[colIndex].trim();
@ -1397,12 +1399,15 @@ export class SystemKeywords {
}
row[propertyName] = value;
value = null;
}
xlRow = null;
row['ordinal'] = rowCount;
row['line'] = foundIndex + 1;
if (hasValue) {
table.push(row);
}
row = null;
}
}