diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-14 22:46:04 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:29:26 +0100 |
commit | c92372d0aa8bd2bc02152941cfd4546b45949368 (patch) | |
tree | a0250d24115b48b69d2ac63a3ceda22631db6463 /scripts/danger/clean | |
parent | 8eb7d0fa0974995d3cfb8a440d72222cc18cd77d (diff) | |
download | PeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.tar.gz PeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.tar.zst PeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.zip |
Server: fix db clean for clean script
Diffstat (limited to 'scripts/danger/clean')
-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 () { |