new(core.gbapp): Timestamp fields are now default.
This commit is contained in:
parent
3e96f1d74e
commit
d3a2d55a7d
1 changed files with 5 additions and 4 deletions
|
@ -1336,13 +1336,14 @@ export class KeywordsExpressions {
|
||||||
// Checks if it is a collection or series of params.
|
// Checks if it is a collection or series of params.
|
||||||
return `
|
return `
|
||||||
|
|
||||||
if (Array.isArray(${fields[0]})){
|
if (Array.isArray(${fields[0]}) || typeof ${fields[0]} === 'object') {
|
||||||
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;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue