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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import * as R from 'ramda'
|
|||
import React, { useState } from 'react'
|
||||
|
||||
import Modal from 'src/components/Modal'
|
||||
import Tooltip from 'src/components/Tooltip'
|
||||
import { Tooltip } from 'src/components/Tooltip'
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { TextInput, NumberInput } from 'src/components/inputs/base'
|
||||
import { H1, H3, TL1, P } from 'src/components/typography'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue