From 9ae492b3188dd679726471c143185c9185e65a8c Mon Sep 17 00:00:00 2001 From: Abdussamed Date: Sun, 16 Apr 2023 13:09:49 +0300 Subject: [PATCH] APShortCode bug fixed --- Source/Services/IPPressure.js | 2 +- frontend/Connection.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Services/IPPressure.js b/Source/Services/IPPressure.js index cd8ce09..f18800e 100644 --- a/Source/Services/IPPressure.js +++ b/Source/Services/IPPressure.js @@ -70,7 +70,7 @@ class APShortCode{ APShortCode.busyCodes.set(code, client); process.send({ type: 'AP_SHORTCODE/LOCK', - uuid: APShortCode.busyCodes.get(num).id, + uuid: APShortCode.busyCodes.get(code).id, value: code }) return code; diff --git a/frontend/Connection.ts b/frontend/Connection.ts index 9d2adca..44cd657 100644 --- a/frontend/Connection.ts +++ b/frontend/Connection.ts @@ -1,6 +1,5 @@ export interface IConnection{ endpoint: string; - autoPair?: boolean; } export class Connection { @@ -10,7 +9,6 @@ export class Connection public connected : boolean = false; constructor(options: IConnection){ this.endpoint = new URL(options.endpoint); - this.autoPair = options.autoPair || false; } public connect() {