fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 676fe1fc6c - Show all commits

View file

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