Skip to content

Commit

Permalink
fix: Handle null config entry correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Oct 8, 2015
1 parent 297fcdc commit f8ebf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class Core {
return Bluebird.bind(this).then(() => {
if (this._connection) return this._connection;
if (this._connectPromise) return this._connectPromise;
return this._connectPromise = this.mongoConnectAsyc(this.url, this._config.options);
return this._connectPromise = this.mongoConnectAsyc(this.url, this._config && this._config.options);
}).then((db: MongoDB.Db) => {
return this.onConnecting(db);
}).then(db => {
Expand Down

0 comments on commit f8ebf0e

Please sign in to comment.