new(core.gbapp): Timestamp fields are now default.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-15 10:49:06 -03:00
parent 3e96f1d74e
commit d3a2d55a7d

View file

@ -793,7 +793,7 @@ export class KeywordsExpressions {
__${$1} = null __${$1} = null
} }
`; `;
} }
} }
]; ];
@ -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;
`; `;
} }
]; ];