Had not declared query const properly. Fixed.

This commit is contained in:
mmcwilliams 2017-11-23 09:35:47 -05:00
parent 64389ab954
commit 6ee022a2a4
1 changed files with 2 additions and 2 deletions

View File

@ -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)