From 394b89b2be765d02b4544198d13cf442f2a2b5c7 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Mon, 6 Apr 2015 14:25:05 -0400 Subject: Fix instantiation bug in OKQuery --- app/node_modules/okquery/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/node_modules/okquery') diff --git a/app/node_modules/okquery/index.js b/app/node_modules/okquery/index.js index d36feae..6f8d7b5 100644 --- a/app/node_modules/okquery/index.js +++ b/app/node_modules/okquery/index.js @@ -5,7 +5,7 @@ * of queries and resources. */ function OKQuery(options) { - if (!(this instanceof OKQuery)) return new OKQuery(db, options); + if (!(this instanceof OKQuery)) return new OKQuery(options); options = options || {}; if (!options.resource) throw new Error('No resource provided to query'); -- cgit v1.2.3-70-g09d2