fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2023-12-10 21:09:50 -03:00
parent 2c42fa5ace
commit 676fe1fc6c

View file

@ -940,10 +940,10 @@ export class GBVMService extends GBService {
const tokens = await min.core['findParam'](min.instance, strFind); const tokens = await min.core['findParam'](min.instance, strFind);
let tokensList = []; let tokensList = [];
await CollectionUtil.asyncForEach(tokens, async t => { await CollectionUtil.asyncForEach(tokens, async t => {
const tokenName = t.replace(strFind, ''); const token = t.replace(strFind, '');
tokensList.push(tokenName); tokensList.push(token);
try { try {
variables[tokenName] = await sys.getCustomToken({pid, tokenName}); variables[token] = await sys.getCustomToken({pid, token});
} catch (error) { } catch (error) {
variables[t] = 'ERROR: Configure /setupSecurity before using token variables.'; variables[t] = 'ERROR: Configure /setupSecurity before using token variables.';
} }