diff --git a/track-investments.js b/track-investments.js index 19e5ed5..80a485b 100644 --- a/track-investments.js +++ b/track-investments.js @@ -30,7 +30,8 @@ const getCredentials = async () => { const loadCredentials = () => { try { - return fs.readFileSync('simplefin.credentials', 'utf8'); + const cache = process.env.ACTUAL_CACHE_DIR || './cache'; + return fs.readFileSync(cache + '/simplefin.credentials', 'utf8'); } catch (err) { return undefined; }