fix(all): New templates.

This commit is contained in:
Rodrigo Rodriguez 2024-08-24 01:15:28 -03:00
parent 512e100ac3
commit 56ce112479

View file

@ -746,7 +746,6 @@ export class SystemKeywords {
*/ */
public async saveToStorageBatch({ pid, table, rows }): Promise<void> { public async saveToStorageBatch({ pid, table, rows }): Promise<void> {
const { min } = await DialogKeywords.getProcessInfo(pid); const { min } = await DialogKeywords.getProcessInfo(pid);
GBLogEx.info(min, `SAVE '${table}': ${rows.length} row(s). ${GBUtil.toYAML(rows)}`);
if (rows.length === 0) { if (rows.length === 0) {
return; return;
@ -771,10 +770,11 @@ export class SystemKeywords {
rowsDest.push(dst); rowsDest.push(dst);
dst = null; dst = null;
}); });
GBLogEx.info(min, `SAVE '${table}': ${rows.length} row(s). ${GBUtil.toYAML(rowsDest)}`);
await retry( await retry(
async bail => { async bail => {
await definition.bulkCreate(GBUtil.caseInsensitive(rowsDest)); await definition.bulkCreate(rowsDest);
rowsDest = []; rowsDest = [];
}, },
{ {