fix(all): Fix in AS IMAGE generation of single row.

This commit is contained in:
Rodrigo Rodriguez 2023-07-23 18:02:10 -03:00
parent 312db227b3
commit 576e73b625
2 changed files with 7 additions and 6 deletions

View file

@ -603,13 +603,14 @@ export class DialogKeywords {
} }
/** /**
* Returns a custom user param persisted on storage. * Returns bot param persisted on storage.
* *
* @example GET PARAM name * @example GET CONFIG name
* *
*/ */
public async getUserParam({ pid, name }) { public async getConfig({ pid, name }) {
await DialogKeywords.getOption({ pid, name }); let { min, user, params } = await DialogKeywords.getProcessInfo(pid);
return min.core.getParam(min.instance, name, null);
} }
/** /**

View file

@ -304,9 +304,9 @@ export class KeywordsExpressions {
]; ];
keywords[i++] = [ keywords[i++] = [
/^\s*((?:[a-z]+.?)(?:(?:\w+).)(?:\w+)*)\s*=\s*get param\s*(.*)/gim, /^\s*((?:[a-z]+.?)(?:(?:\w+).)(?:\w+)*)\s*=\s*get config\s*(.*)/gim,
($0, $1, $2) => { ($0, $1, $2) => {
return `${$1} = await dk.getUserParam ({pid: pid, ${$2}})`; return `${$1} = await dk.getConfig ({pid: pid, ${$2}})`;
} }
]; ];