Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
🐛 Fixed access token env name
Browse files Browse the repository at this point in the history
  • Loading branch information
NuroDev committed Jul 25, 2019
1 parent bcb54a6 commit 9b6811e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const cors = require('cors')
const apicache = require('apicache')
const fetch = require('node-fetch')

const { ACCESS_TOKEN } = process.env
const { GH_ACCESS_TOKEN } = process.env

const app = express()
const cache = apicache.middleware
Expand All @@ -19,7 +19,7 @@ const download = (url) => {
const fetchOptions = {
method: 'GET',
headers: {
Authorization: `token ${ACCESS_TOKEN}`
Authorization: `token ${GH_ACCESS_TOKEN}`
}
}

Expand Down

0 comments on commit 9b6811e

Please sign in to comment.