fix(all): Fix search on others bots than boot.

This commit is contained in:
Rodrigo Rodriguez 2023-09-11 10:47:47 -03:00
parent 6a7c49f827
commit 6f9459ce0b

View file

@ -1184,7 +1184,7 @@ export class GBMinService {
return utterance.match(Messages.global_quit); return utterance.match(Messages.global_quit);
} }
private async handleUploads(min, step, user, params) private async handleUploads(min, step, user, params, autoSave)
{ {
// Prepare Promises to download each attachment and then execute each Promise. // Prepare Promises to download each attachment and then execute each Promise.
@ -1359,7 +1359,8 @@ export class GBMinService {
} }
} }
await this.handleUploads(min, step, user, params); const notes = min.core.getParam(min.instance, 'Notes', null);
await this.handleUploads(min, step, user, params, notes != null);
// Files in .gbdialog can be called directly by typing its name normalized into JS . // Files in .gbdialog can be called directly by typing its name normalized into JS .
@ -1416,7 +1417,7 @@ export class GBMinService {
step.context.activity['originalText'] step.context.activity['originalText']
step.context.activity['text'] = text; step.context.activity['text'] = text;
const notes = min.core.getParam(min.instance, 'Notes', null);
if (notes && text && text !== "") { if (notes && text && text !== "") {
const sys = new SystemKeywords(); const sys = new SystemKeywords();
await sys.note({pid, text}); await sys.note({pid, text});