Feat: move notif center fns to own file on the notifier module

Fix: fix jest test
This commit is contained in:
Cesar 2021-01-20 14:37:34 +00:00 committed by Josh Harvey
parent 34f2b84fe2
commit 69d3e4cb9b
6 changed files with 204 additions and 190 deletions

View file

@ -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)