diff options
Diffstat (limited to 'scripts/danger/clean/cleaner.js')
-rw-r--r-- | scripts/danger/clean/cleaner.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/danger/clean/cleaner.js b/scripts/danger/clean/cleaner.js index 3d364fd23..10e91e700 100644 --- a/scripts/danger/clean/cleaner.js +++ b/scripts/danger/clean/cleaner.js | |||
@@ -4,7 +4,7 @@ mongoose.Promise = global.Promise | |||
4 | 4 | ||
5 | const constants = require('../../../server/initializers/constants') | 5 | const constants = require('../../../server/initializers/constants') |
6 | 6 | ||
7 | const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME | 7 | const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME |
8 | mongoose.connect(mongodbUrl, function () { | 8 | mongoose.connect(mongodbUrl, function () { |
9 | console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME) | 9 | console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME) |
10 | mongoose.connection.dropDatabase(function () { | 10 | mongoose.connection.dropDatabase(function () { |