diff --git a/backend/src/index.ts b/backend/src/index.ts index 128c82f7..fdd7986c 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -189,7 +189,7 @@ connect().then(async () => { const safe429MaxCount = 5; const safe429Counter = new DecayingCounter(safe429DecayInterval); client.on(Constants.Events.DEBUG, errorText => { - if (!errorText.indexOf("429")) { + if (!errorText.includes("429")) { // tslint:disable-next-line:no-console console.debug(`[DEBUG] ${errorText}`); return;