Merge branch 'release-8.6' into feat-add-aveiro-admin-ui-8.5
This commit is contained in:
commit
189aff31d7
25 changed files with 134 additions and 44 deletions
|
|
@ -112,7 +112,7 @@ function triggerSuspend (req, res, next) {
|
|||
const triggers = configManager.getTriggers(req.settings.config)
|
||||
const getSuspendDays = _.compose(_.get('suspensionDays'), _.find(_.matches({ id: triggerId })))
|
||||
|
||||
const days = triggerId === 'no-ff-camera' ? 1 : getSuspendDays(triggers)
|
||||
const days = _.includes(triggerId, ['no-ff-camera', 'id-card-photo-disabled']) ? 1 : getSuspendDays(triggers)
|
||||
|
||||
const suspensionDuration = intervalToDuration({ start: 0, end: T.day * days })
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ function postTx (req, res, next) {
|
|||
switch (tx.errorCode) {
|
||||
case 'InsufficientFundsError':
|
||||
throw httpError(tx.error, 570)
|
||||
case 'scoreThresholdReached':
|
||||
throw httpError(tx.error, 571)
|
||||
case 'ciphertraceError':
|
||||
throw httpError(tx.error, 572)
|
||||
default:
|
||||
throw httpError(tx.error, 500)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue