fix: sql and import
This commit is contained in:
parent
9291b7ebcb
commit
e846f5a165
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue