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 `
|
||||
|
||||
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;
|
||||
`;
|
||||
|
|
|
@ -751,7 +751,7 @@ export class SystemKeywords {
|
|||
return;
|
||||
}
|
||||
|
||||
const definition = this.getTableFromName(table, min);
|
||||
const t = this.getTableFromName(table, min);
|
||||
let rowsDest = [];
|
||||
|
||||
rows.forEach(row => {
|
||||
|
@ -775,7 +775,7 @@ export class SystemKeywords {
|
|||
|
||||
await retry(
|
||||
async bail => {
|
||||
await definition.bulkCreate(rowsDest);
|
||||
await t.bulkCreate(rowsDest);
|
||||
rowsDest = null;
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue