From f3c8fcb6a6a16ce9db92e852433ad5cfd8b99af1 Mon Sep 17 00:00:00 2001 From: Oscar Mulder Date: Sat, 17 Jun 2023 22:32:21 +0200 Subject: [PATCH] feat: pass redis to bottleneck to fix require --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index efa9ae7..89a42a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import Bottleneck from "bottleneck"; import fetch, { Response } from 'node-fetch'; import NodeCache from 'node-cache'; +import redis from 'redis'; interface AccessTokenInfo { access_token: AccessToken @@ -402,6 +403,7 @@ class Fast42 { port: redisConfig.port, password: redisConfig.password, }, + Redis: redis, // Hourly rate limit reservoir: limit.hourly_remaining,