From 9820bb3f7a4905de34eb1d3fa002c8a4b098027c Mon Sep 17 00:00:00 2001 From: Alan Perdomo Date: Thu, 19 Jan 2023 10:47:47 -0300 Subject: [PATCH] fix(basic.gblib): executionid and changed to pid and security context for HEAR(#322). --- packages/basic.gblib/services/DialogKeywords.ts | 6 +++--- packages/basic.gblib/services/SystemKeywords.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index dd688d5cb..05d2991ee 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -722,7 +722,7 @@ export class DialogKeywords { const process = GBServer.globals.processes[pid]; let { min, user - } = await this.getProcessInfo(pid); + } = await DialogKeywords.getProcessInfo(pid); // Handles first arg as an array of args. @@ -1038,7 +1038,7 @@ export class DialogKeywords { } } - public async getProcessInfo(pid: number) { + public static async getProcessInfo(pid: number) { const proc = GBServer.globals.processes[pid]; const min = GBServer.globals.minInstances.filter(p => @@ -1058,7 +1058,7 @@ export class DialogKeywords { GBLog.info(`BASIC: TALK '${text}'.`); const { min, user - } = await this.getProcessInfo(pid); + } = await DialogKeywords.getProcessInfo(pid); if (user) { // TODO: const translate = this.user ? this.user.basicOptions.translatorOn : false; diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index b1962511f..db76e8ada 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -481,7 +481,7 @@ export class SystemKeywords { }); if (!documents || documents.length === 0) { - throw `File '${file}' specified on GBasic command not found. Check the .gbdata or the .gbdialog associated.`; + throw `File '${file}' specified on GBasic command not found. Check the .gbdata or the .gb'dialog' associated.`; } return documents[0];