fix: sql and import

This commit is contained in:
Sérgio Salgado 2021-01-04 13:52:44 +00:00 committed by Josh Harvey
parent 9291b7ebcb
commit e846f5a165
2 changed files with 2 additions and 2 deletions

View file

@ -191,7 +191,7 @@ function plugins (settings, deviceId) {
}
function fetchCurrentAvailableCoupons () {
const sql = `select * from coupons where soft_deleted=false`
const sql = `SELECT * FROM coupons WHERE soft_deleted=false`
return db.any(sql).then(v => v.length)
}