Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix auth fail

  • Loading branch information...
commit bd2ece69b2d2e1e8927fe11011241d6283d60700 1 parent f5b1855
@adrai authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 storage/mongoDb/storage.js
View
4 storage/mongoDb/storage.js
@@ -82,7 +82,7 @@ Storage.prototype = {
if (err) {
if (callback) callback(err);
} else {
- var finish = function() {
+ var finish = function(err) {
self.client = client;
self.isConnected = true;
@@ -90,7 +90,7 @@ Storage.prototype = {
self.snapshots = new mongo.Collection(client, self.options.snapshotsCollectionName);
self.transactions = new mongo.Collection(client, self.options.transactionsCollectionName);
- if (callback) callback(null, self);
+ if (callback) callback(err, self);
};
if (self.options.username) {
Please sign in to comment.
Something went wrong with that request. Please try again.