From 6ee022a2a49a9bd5477d7c1b21f8c093ffc05b6f Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 23 Nov 2017 09:35:47 -0500 Subject: [PATCH] Had not declared query const properly. Fixed. --- lib/db/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/index.js b/lib/db/index.js index 2ee0a8c..f8c9c18 100644 --- a/lib/db/index.js +++ b/lib/db/index.js @@ -31,14 +31,14 @@ class DB { db.run(query) } find (where, cb) { - const query.select() + const query = squel.select() .from(this._table) .where(where) .toString() db.all(query, cb) } list (cb) { - const query.select() + const query = squel.select() .from(this._table) .toString() db.all(query, cb)