add missing config

This commit is contained in:
teddit 2020-12-01 20:20:01 +01:00
parent 15a976c886
commit da33b5c456
2 changed files with 3 additions and 0 deletions

2
app.js
View File

@ -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')

View File

@ -1,4 +1,5 @@
module.exports = function() {
const config = require('../config')
this.processSubredditSidebar = (subreddit, redis, fetch, RedditAPI) => {
return new Promise(resolve => {
(async () => {