Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #130 from sahilsk/fix_db_stats_args
Browse files Browse the repository at this point in the history
added dbname in place of collecions
  • Loading branch information
mcollina committed Jan 19, 2016
2 parents c635503 + 5ad9112 commit 50ecef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ MongoAscoltatore.prototype._handleCursorClosed = function (latest) {
var retry = 0;
var reconnect = function () {
debug('handleCursorClosed -> Wait for the database to be connected...');
that.db.db(that._pubsubCollection).stats({}, function (err, stats) {
that.db.db(that.db.databaseName).stats({}, function (err, stats) {
var success = true;
if (err) {
debug('handleCursorClosed -> Stats failed: ' + err);
Expand Down

0 comments on commit 50ecef2

Please sign in to comment.