Feat: warn admin if address is duplicate

This commit is contained in:
Cesar 2020-12-21 21:12:22 +00:00 committed by Josh Harvey
parent fd2a34d475
commit 5823485ab7
4 changed files with 43 additions and 15 deletions

View file

@ -21,13 +21,10 @@ const deleteFromBlacklist = (cryptoCode, address) => {
const insertIntoBlacklist = (cryptoCode, address) => {
return db
.any(
.none(
'insert into blacklist(crypto_code, address, created_by_operator) values($1, $2, $3);',
[cryptoCode, address, true]
)
.then(() => {
return { cryptoCode, address }
})
}
function blocked(address, cryptoCode) {