diff --git a/src/RSI/services/rsi.service.ts b/src/RSI/services/rsi.service.ts index 2e3ed77..bee1033 100755 --- a/src/RSI/services/rsi.service.ts +++ b/src/RSI/services/rsi.service.ts @@ -34,9 +34,9 @@ export class RSIService { this.ensureCookieJar(); } - protected async ensureCookieJar() { + protected ensureCookieJar() { const path = __dirname + "/../../cache/cookie.json"; - await fs.ensureFile(path); + fs.ensureFileSync(path); this.cookieJar = popsicle.jar(new cookieStore(path)); }