From c92372d0aa8bd2bc02152941cfd4546b45949368 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2016 22:46:04 +0100 Subject: Server: fix db clean for clean script --- scripts/danger/clean/cleaner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/danger') 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 const constants = require('../../../server/initializers/constants') -const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME +const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME mongoose.connect(mongodbUrl, function () { console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME) mongoose.connection.dropDatabase(function () { -- cgit v1.2.3