aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
commitf0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch)
tree99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/initializers/database.js
parent5101105ef91bfe478f97546b78b321882da2079c (diff)
downloadPeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.gz
PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.zst
PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.zip
Use const/let now we use node 4.2
Diffstat (limited to 'server/initializers/database.js')
-rw-r--r--server/initializers/database.js14
1 files changed, 7 insertions, 7 deletions
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 @@
1'use strict' 1'use strict'
2 2
3var config = require('config') 3const config = require('config')
4var mongoose = require('mongoose') 4const mongoose = require('mongoose')
5 5
6var logger = require('../helpers/logger') 6const logger = require('../helpers/logger')
7 7
8var dbname = 'peertube' + config.get('database.suffix') 8const dbname = 'peertube' + config.get('database.suffix')
9var host = config.get('database.host') 9const host = config.get('database.host')
10var port = config.get('database.port') 10const port = config.get('database.port')
11 11
12var database = { 12const database = {
13 connect: connect 13 connect: connect
14} 14}
15 15