Add blacklist functionality
This commit is contained in:
parent
a638524249
commit
4640b4a774
6 changed files with 57 additions and 7 deletions
11
lib/blacklist.js
Normal file
11
lib/blacklist.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const db = require('./db')
|
||||
|
||||
function blocked (address, cryptoCode) {
|
||||
const sql = `select * from blacklist where address = $1 and crypto_code = $2`
|
||||
return db.oneOrNone(sql, [
|
||||
address,
|
||||
cryptoCode
|
||||
])
|
||||
}
|
||||
|
||||
module.exports = { blocked }
|
||||
Loading…
Add table
Add a link
Reference in a new issue