diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
commit | f0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch) | |
tree | 99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/initializers/database.js | |
parent | 5101105ef91bfe478f97546b78b321882da2079c (diff) | |
download | PeerTube-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.js | 14 |
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 | ||
3 | var config = require('config') | 3 | const config = require('config') |
4 | var mongoose = require('mongoose') | 4 | const mongoose = require('mongoose') |
5 | 5 | ||
6 | var logger = require('../helpers/logger') | 6 | const logger = require('../helpers/logger') |
7 | 7 | ||
8 | var dbname = 'peertube' + config.get('database.suffix') | 8 | const dbname = 'peertube' + config.get('database.suffix') |
9 | var host = config.get('database.host') | 9 | const host = config.get('database.host') |
10 | var port = config.get('database.port') | 10 | const port = config.get('database.port') |
11 | 11 | ||
12 | var database = { | 12 | const database = { |
13 | connect: connect | 13 | connect: connect |
14 | } | 14 | } |
15 | 15 | ||