Merge pull request #1707 from RafaelTaranto/fix/fetch-only-valid-alerts
LAM-1110 fix: only fetch valid alerts
This commit is contained in:
commit
10ea642c11
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ const getAlerts = () => {
|
|||
const types = ['fiatBalance', 'cryptoBalance', 'error']
|
||||
const sql = `
|
||||
SELECT * FROM notifications
|
||||
WHERE ${WITHIN_PAST_WEEK} AND type IN ($1:list)
|
||||
WHERE ${WITHIN_PAST_WEEK} AND valid='t' AND type IN ($1:list)
|
||||
ORDER BY created DESC
|
||||
`
|
||||
return db.any(sql, [types]).catch(logger.error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue