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

View file

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