From fcd410e6b142d7b7d359bf7973b3f2fe97e82f93 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 19 May 2015 10:25:21 -0300 Subject: [PATCH] Update stats.js fix url --- lib/stats.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/stats.js b/lib/stats.js index 586582d..2ab4a6d 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -10,8 +10,7 @@ var config = require('../config'); var c = config.storageOpts.mongoDb; -var url = 'mongodb://' + (c.host || 'localhost') + ':' + (c.port ||  27017) + '/bws'; - +var url = c.uri; var startDate = moment(); var endDate = moment();