APShortCode bug fixed
This commit is contained in:
parent
03ae02e8ba
commit
9ae492b318
|
@ -70,7 +70,7 @@ class APShortCode{
|
||||||
APShortCode.busyCodes.set(code, client);
|
APShortCode.busyCodes.set(code, client);
|
||||||
process.send({
|
process.send({
|
||||||
type: 'AP_SHORTCODE/LOCK',
|
type: 'AP_SHORTCODE/LOCK',
|
||||||
uuid: APShortCode.busyCodes.get(num).id,
|
uuid: APShortCode.busyCodes.get(code).id,
|
||||||
value: code
|
value: code
|
||||||
})
|
})
|
||||||
return code;
|
return code;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
export interface IConnection{
|
export interface IConnection{
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
autoPair?: boolean;
|
|
||||||
}
|
}
|
||||||
export class Connection
|
export class Connection
|
||||||
{
|
{
|
||||||
|
@ -10,7 +9,6 @@ export class Connection
|
||||||
public connected : boolean = false;
|
public connected : boolean = false;
|
||||||
constructor(options: IConnection){
|
constructor(options: IConnection){
|
||||||
this.endpoint = new URL(options.endpoint);
|
this.endpoint = new URL(options.endpoint);
|
||||||
this.autoPair = options.autoPair || false;
|
|
||||||
}
|
}
|
||||||
public connect()
|
public connect()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue