fix(all): TRUE multicloud.
This commit is contained in:
parent
71c8fab53e
commit
e5eb64b11d
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -751,7 +751,7 @@ export class SystemKeywords {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const definition = this.getTableFromName(table, min);
|
const t = this.getTableFromName(table, min);
|
||||||
let rowsDest = [];
|
let rowsDest = [];
|
||||||
|
|
||||||
rows.forEach(row => {
|
rows.forEach(row => {
|
||||||
|
@ -775,7 +775,7 @@ export class SystemKeywords {
|
||||||
|
|
||||||
await retry(
|
await retry(
|
||||||
async bail => {
|
async bail => {
|
||||||
await definition.bulkCreate(rowsDest);
|
await t.bulkCreate(rowsDest);
|
||||||
rowsDest = null;
|
rowsDest = null;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue