crawling and saving to mongo

This commit is contained in:
Senad Uka
2016-11-10 14:03:58 +01:00
parent 5a819cc743
commit 2ad851b257
4 changed files with 20 additions and 16 deletions

View File

@@ -15,7 +15,7 @@ export default class MongoSaver {
console.log('Unable to connect to the mongoDB server. Error:', err);
reject(err);
} else {
console.log('Connection established to', url);
console.log('Connection established to', this.url);
saver.db = db;
saver.collection = db.collection('results');
saver.ready = true;