From 421160c0dced0101c1f412569c0f37c8a9247452 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Wed, 7 Jul 2021 12:04:43 -0500 Subject: [PATCH] fix(api): queue being undefined --- src/api/apiManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/apiManager.ts b/src/api/apiManager.ts index cb0ee43..cf01da7 100644 --- a/src/api/apiManager.ts +++ b/src/api/apiManager.ts @@ -31,7 +31,7 @@ export class ApiManager { 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); this.queues.set(apiHandler.id, apiHandler);