Merge pull request #367 from jirkavrba/fix-typo

Fix typo in .token_cache
This commit is contained in:
lukaarma 2021-04-15 21:15:18 +02:00 committed by GitHub
commit 757aab1747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,11 +43,12 @@ export class TokenCache {
public Write(session: Session): void {
const s: string = JSON.stringify(session, null, 4);
fs.writeFile('.token_cache', s, (err: any) => {
fs.writeFile(this.tokenCacheFile, s, (err: any) => {
if (err) {
return logger.error(err);
}
logger.info('Fresh access token dropped into .token_cachen \n'.green);
logger.info(`Fresh access token dropped into ${this.tokenCacheFile} \n`.green);
});
}
}