fix(all): TRUE multicloud.

This commit is contained in:
Rodrigo Rodriguez 2024-08-25 13:31:18 -03:00
parent 71c8fab53e
commit e5eb64b11d
2 changed files with 4 additions and 4 deletions

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

@ -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;
},
{