Skip to content

Commit ff8aa18

Browse files
committed
fix: Cannot read property 'getCookiesSync' of undefined
1 parent 8f26d92 commit ff8aa18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RSI/services/rsi.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class RSIService {
3434
this.ensureCookieJar();
3535
}
3636

37-
protected async ensureCookieJar() {
37+
protected ensureCookieJar() {
3838
const path = __dirname + "/../../cache/cookie.json";
39-
await fs.ensureFile(path);
39+
fs.ensureFileSync(path);
4040

4141
this.cookieJar = popsicle.jar(new cookieStore(path));
4242
}

0 commit comments

Comments
 (0)