Skip to content

Commit

Permalink
fix(basic.gblib): executionid and changed to pid and security context…
Browse files Browse the repository at this point in the history
… for HEAR(#322).
  • Loading branch information
AlanPerdomo committed Jan 19, 2023
1 parent 1063739 commit 9820bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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 =>
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 9820bb3

Please sign in to comment.