Chore: move catch into queries file
This commit is contained in:
parent
05373e83db
commit
82912b728a
7 changed files with 26 additions and 28 deletions
|
|
@ -15,7 +15,7 @@ const getBlacklist = () => {
|
|||
// Delete row from blacklist table by crypto code and address
|
||||
const deleteFromBlacklist = (cryptoCode, address) => {
|
||||
const sql = `DELETE FROM blacklist WHERE crypto_code = $1 AND address = $2`
|
||||
notifierQueries.clearBlacklistNotification(cryptoCode, address).catch(console.error)
|
||||
notifierQueries.clearBlacklistNotification(cryptoCode, address)
|
||||
return db.none(sql, [cryptoCode, address])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue