From c7479d9d950d83fb1f0ee7063432eaa6a66e4a45 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 20 Jan 2017 14:33:37 +0900 Subject: [PATCH] Fix bug --- src/web/service/twitter/begin.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/web/service/twitter/begin.ts b/src/web/service/twitter/begin.ts index f100913d3f..dcfe1611cf 100644 --- a/src/web/service/twitter/begin.ts +++ b/src/web/service/twitter/begin.ts @@ -1,10 +1,11 @@ import * as express from 'express'; //import * as Twitter from 'twitter'; -import Twitter = require('twitter'); +const Twitter = require('twitter'); +import config from '../../../conf'; const client = new Twitter({ - consumer_key: process.env.TWITTER_CONSUMER_KEY, - consumer_secret: process.env.TWITTER_CONSUMER_SECRET + consumer_key: config.twitter.consumer_key, + consumer_secret: config.twitter.consumer_secret }); module.exports = (req: express.Request, res: express.Response) => {