Permalink
Browse files

fix auth fail

  • Loading branch information...
1 parent f5b1855 commit bd2ece69b2d2e1e8927fe11011241d6283d60700 @adrai committed Feb 4, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 storage/mongoDb/storage.js
View
4 storage/mongoDb/storage.js
@@ -82,15 +82,15 @@ Storage.prototype = {
if (err) {
if (callback) callback(err);
} else {
- var finish = function() {
+ var finish = function(err) {
self.client = client;
self.isConnected = true;
self.events = new mongo.Collection(client, self.options.eventsCollectionName);
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) {

0 comments on commit bd2ece6

Please sign in to comment.