Fix: fix crypto overrides not being respected

This commit is contained in:
Cesar 2021-01-21 15:25:39 +00:00 committed by Josh Harvey
parent c457faab40
commit 366adad375
3 changed files with 29 additions and 21 deletions

View file

@ -363,7 +363,7 @@ function triggerSuspend (req, res, next) {
customers.update(id, { suspendedUntil: date })
.then(customer => {
notifier.customerComplianceNotify(customer, req.deviceId, 'SUSPENDED', days)
respond(req, res, { customer })
return respond(req, res, { customer })
})
.catch(next)
}