fix(all): New templates.
This commit is contained in:
parent
512e100ac3
commit
56ce112479
1 changed files with 5 additions and 5 deletions
|
@ -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 = [];
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue