fix: compliance fixes

This commit is contained in:
Taranto 2020-10-02 14:33:21 +01:00 committed by Josh Harvey
parent c45241471e
commit 118852a433
5 changed files with 10 additions and 8 deletions

View file

@ -6,4 +6,8 @@ function getBackwardsCompatibleTriggers (triggers) {
return _.mapValues(_.compose(_.get('threshold'), _.minBy('threshold')))(grouped)
}
module.exports = { getBackwardsCompatibleTriggers}
function hasSanctions (triggers) {
return _.some(_.matches({ requirement: 'sanctions' }))(triggers)
}
module.exports = { getBackwardsCompatibleTriggers, hasSanctions }