Feat: move notif center fns to own file on the notifier module
Fix: fix jest test
This commit is contained in:
parent
34f2b84fe2
commit
69d3e4cb9b
6 changed files with 204 additions and 190 deletions
|
|
@ -31,9 +31,9 @@ function post (machineTx, pi) {
|
|||
|
||||
if (_.some(it => it.created_by_operator)(blacklistItems)) {
|
||||
blacklisted = true
|
||||
notifier.blacklistNotify(r.tx, false)
|
||||
notifier.notifyIfActive('compliance', 'blacklistNotify', r.tx, false).catch(console.error)
|
||||
} else if (_.some(it => !it.created_by_operator)(blacklistItems) && rejectAddressReuseActive) {
|
||||
notifier.blacklistNotify(r.tx, true)
|
||||
notifier.notifyIfActive('compliance', 'blacklistNotify', r.tx, true).catch(console.error)
|
||||
addressReuse = true
|
||||
}
|
||||
return postProcess(r, pi, blacklisted, addressReuse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue