Authored by htoooth

fix

@@ -2,6 +2,7 @@ const queryParse = require('../lib/query-parse'); @@ -2,6 +2,7 @@ const queryParse = require('../lib/query-parse');
2 const sourceMapParse = require('../lib/sourcemap-parse'); 2 const sourceMapParse = require('../lib/sourcemap-parse');
3 const Sender = require('influx-batch-sender'); 3 const Sender = require('influx-batch-sender');
4 const _ = require('lodash'); 4 const _ = require('lodash');
  5 +
5 const logger = global.yoho.logger; 6 const logger = global.yoho.logger;
6 const config = global.yoho.config; 7 const config = global.yoho.config;
7 8
@@ -11,7 +12,7 @@ const durationType = { @@ -11,7 +12,7 @@ const durationType = {
11 fs: 'firstscreen' 12 fs: 'firstscreen'
12 }; 13 };
13 14
14 -const influxSender = new Sender(config.report); 15 +const influxSender = new Sender(config.reportApi);
15 16
16 module.exports = (req, res, next) => { 17 module.exports = (req, res, next) => {
17 if (!req.query.l) { 18 if (!req.query.l) {