diff options
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 | ||