From f0f5567b6918fc60c8cab15e13aec03a89a91dfb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Mar 2016 22:29:27 +0100 Subject: Use const/let now we use node 4.2 --- server/initializers/database.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/initializers/database.js') diff --git a/server/initializers/database.js b/server/initializers/database.js index a917442ec..830cc7dd8 100644 --- a/server/initializers/database.js +++ b/server/initializers/database.js @@ -1,15 +1,15 @@ 'use strict' -var config = require('config') -var mongoose = require('mongoose') +const config = require('config') +const mongoose = require('mongoose') -var logger = require('../helpers/logger') +const logger = require('../helpers/logger') -var dbname = 'peertube' + config.get('database.suffix') -var host = config.get('database.host') -var port = config.get('database.port') +const dbname = 'peertube' + config.get('database.suffix') +const host = config.get('database.host') +const port = config.get('database.port') -var database = { +const database = { connect: connect } -- cgit v1.2.3