Skip to content

Commit

Permalink
fix: Cannot read property 'getCookiesSync' of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Superd22 committed Jan 4, 2019
1 parent 8f26d92 commit ff8aa18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RSI/services/rsi.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit ff8aa18

Please sign in to comment.