new(whatsapp.gblib): Auto-create WhatsApp templates from articles in .docx.
This commit is contained in:
parent
cff60cddac
commit
b0aeb83d2e
1 changed files with 2 additions and 0 deletions
|
@ -1176,6 +1176,7 @@ export class KeywordsExpressions {
|
||||||
/^\s*MERGE\s*(.*)\s*WITH\s*(.*)BY\s*(.*)/gim,
|
/^\s*MERGE\s*(.*)\s*WITH\s*(.*)BY\s*(.*)/gim,
|
||||||
($0, $1, $2, $3) => {
|
($0, $1, $2, $3) => {
|
||||||
return `__reportMerge1 = await sys.merge({pid: pid, file: ${$1}, data: ${$2}, key1: ${$3}})
|
return `__reportMerge1 = await sys.merge({pid: pid, file: ${$1}, data: ${$2}, key1: ${$3}})
|
||||||
|
${$2} = null;
|
||||||
__reportMerge.adds += __reportMerge1.adds;
|
__reportMerge.adds += __reportMerge1.adds;
|
||||||
__reportMerge.updates += __reportMerge1.updates;
|
__reportMerge.updates += __reportMerge1.updates;
|
||||||
__reportMerge.skipped += __reportMerge1.skipped;
|
__reportMerge.skipped += __reportMerge1.skipped;
|
||||||
|
@ -1297,6 +1298,7 @@ export class KeywordsExpressions {
|
||||||
}else{
|
}else{
|
||||||
await sys.saveToStorage({pid: pid, table: ${table}, fieldsValues: [${fieldsAsText}], fieldsNames: [${fieldsNames}] })
|
await sys.saveToStorage({pid: pid, table: ${table}, fieldsValues: [${fieldsAsText}], fieldsNames: [${fieldsNames}] })
|
||||||
}
|
}
|
||||||
|
${table} = null;
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue