use the config for updating - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit c3afa3ff4c0b42f15bc7c579163866fec20cebbd
(DIR) parent 1e7b2f1808900a53910ced52a7b2abfea83f5186
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Wed, 5 Jul 2017 16:21:03 +0100
use the config for updating
Diffstat:
M bin/update | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/bin/update b/bin/update
@@ -6,7 +6,9 @@ console.log('Updating Seeder and Leecher information');
const async = require('async');
const mongoose = require('mongoose');
const webtorrentHealth = require('webtorrent-health');
-const mongoDB = process.env.DB_URI;
+const config = require('../app/config');
+
+const mongoDB = config.dbURI;
const Torrent = require('../models/torrent_model');
mongoose.connect(mongoDB);