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)