From da33b5c4565a462b9b0500cb01354e1331d6e21a Mon Sep 17 00:00:00 2001 From: teddit Date: Tue, 1 Dec 2020 20:20:01 +0100 Subject: [PATCH] add missing config --- app.js | 2 ++ inc/processSubredditSidebar.js | 1 + 2 files changed, 3 insertions(+) diff --git a/app.js b/app.js index 8112690..e703ead 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,8 @@ const config = require('./config') global.client_id_b64 = Buffer.from(`${config.reddit_app_id}:`).toString('base64') +global.reddit_access_token = null +global.reddit_refresh_token = null const pug = require('pug') const path = require('path') diff --git a/inc/processSubredditSidebar.js b/inc/processSubredditSidebar.js index e35149c..e833aa5 100644 --- a/inc/processSubredditSidebar.js +++ b/inc/processSubredditSidebar.js @@ -1,4 +1,5 @@ module.exports = function() { + const config = require('../config') this.processSubredditSidebar = (subreddit, redis, fetch, RedditAPI) => { return new Promise(resolve => { (async () => {