toystars / node-elasticsearch-sync

ElasticSearch and MongoDB sync module for node
MIT License
17 stars 11 forks source link

mongo URL #1

Closed andymcollins closed 8 years ago

andymcollins commented 8 years ago

When i run

ESMongoSync.init("mongodb://localhost:27017/db","localhost:9200", finalCallBack, watcherArray, batchCount);

i get this error throw new TypeError("Parameter 'url' must be a string, not " + typeof url);

toystars commented 8 years ago

@andymcollins, it is a bug when trying to connect to mongoDB using only environment variables, instead of checking if the mongo url is set in init().It has been fixed in PR #3

andymcollins commented 8 years ago

Great Thank you