From 379cf08e659d280ebfc36440f317974fd310de00 Mon Sep 17 00:00:00 2001 From: Benjamin Pannell Date: Wed, 27 Nov 2013 12:43:03 +0200 Subject: [PATCH] Fix connect function --- lib/Database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Database.js b/lib/Database.js index ff07fbd..2466ea3 100644 --- a/lib/Database.js +++ b/lib/Database.js @@ -35,7 +35,7 @@ Database.prototype.connect = function (cb) { "use strict"; - if (this.connection) return cb(null, this.connection); + if (this.connection) return cb(null, this); var $ = this;