fix(all): New templates.
This commit is contained in:
parent
0cfdd951b5
commit
c4b336dcd7
3 changed files with 8 additions and 7 deletions
|
@ -249,10 +249,6 @@
|
||||||
"tslint": "6.1.3",
|
"tslint": "6.1.3",
|
||||||
"vitest": "1.6.0"
|
"vitest": "1.6.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
|
||||||
"@img/sharp-linux-arm": "0.33.4",
|
|
||||||
"@img/sharp-win32-x64": "0.33.4"
|
|
||||||
},
|
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"env": {
|
"env": {
|
||||||
"node": true,
|
"node": true,
|
||||||
|
|
|
@ -1313,9 +1313,9 @@ export class KeywordsExpressions {
|
||||||
return `
|
return `
|
||||||
|
|
||||||
if (Array.isArray(${fields[0]})){
|
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{
|
}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;
|
${fields[0].replace(/\`/g, '')} = null;
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -769,6 +769,7 @@ export class SystemKeywords {
|
||||||
});
|
});
|
||||||
rowsDest.push(dst);
|
rowsDest.push(dst);
|
||||||
dst = null;
|
dst = null;
|
||||||
|
row = null;
|
||||||
});
|
});
|
||||||
GBLogEx.info(min, `SAVE '${table}': ${rows.length} row(s).`);
|
GBLogEx.info(min, `SAVE '${table}': ${rows.length} row(s).`);
|
||||||
|
|
||||||
|
@ -813,6 +814,7 @@ export class SystemKeywords {
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
});
|
});
|
||||||
|
dst = null;
|
||||||
|
|
||||||
let item;
|
let item;
|
||||||
await retry(
|
await retry(
|
||||||
|
@ -1380,7 +1382,7 @@ export class SystemKeywords {
|
||||||
if (filterAcceptCount === filters.length) {
|
if (filterAcceptCount === filters.length) {
|
||||||
rowCount++;
|
rowCount++;
|
||||||
let row = {};
|
let row = {};
|
||||||
const xlRow = rows[foundIndex];
|
let xlRow = rows[foundIndex];
|
||||||
let hasValue = false;
|
let hasValue = false;
|
||||||
for (let colIndex = 0; colIndex < xlRow.length; colIndex++) {
|
for (let colIndex = 0; colIndex < xlRow.length; colIndex++) {
|
||||||
const propertyName = header[colIndex].trim();
|
const propertyName = header[colIndex].trim();
|
||||||
|
@ -1397,12 +1399,15 @@ export class SystemKeywords {
|
||||||
}
|
}
|
||||||
|
|
||||||
row[propertyName] = value;
|
row[propertyName] = value;
|
||||||
|
value = null;
|
||||||
}
|
}
|
||||||
|
xlRow = null;
|
||||||
row['ordinal'] = rowCount;
|
row['ordinal'] = rowCount;
|
||||||
row['line'] = foundIndex + 1;
|
row['line'] = foundIndex + 1;
|
||||||
if (hasValue) {
|
if (hasValue) {
|
||||||
table.push(row);
|
table.push(row);
|
||||||
}
|
}
|
||||||
|
row = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue