Merge pull request #1527 from josepfo/feat/add-genmega-support
LAM-789 Fix suspend flag for gm machine
This commit is contained in:
commit
b3afbe7255
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ function triggerSuspend (req, res, next) {
|
||||||
const triggers = configManager.getTriggers(req.settings.config)
|
const triggers = configManager.getTriggers(req.settings.config)
|
||||||
const getSuspendDays = _.compose(_.get('suspensionDays'), _.find(_.matches({ id: triggerId })))
|
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 })
|
const suspensionDuration = intervalToDuration({ start: 0, end: T.day * days })
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue