fix(api): queue being undefined
This commit is contained in:
parent
6b6fe2a286
commit
421160c0dc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export class ApiManager {
|
||||||
|
|
||||||
let queue = this.queues.get(`${hash}:${routeId.majorParameter}`);
|
let queue = this.queues.get(`${hash}:${routeId.majorParameter}`);
|
||||||
|
|
||||||
if (queue === null) {
|
if (!queue) {
|
||||||
const apiHandler = new ApiHandler(this.client, this, this._token, hash, routeId.majorParameter);
|
const apiHandler = new ApiHandler(this.client, this, this._token, hash, routeId.majorParameter);
|
||||||
this.queues.set(apiHandler.id, apiHandler);
|
this.queues.set(apiHandler.id, apiHandler);
|
||||||
|
|
||||||
|
|
Reference in a new issue