- if (Emailer.isEnabled() === false) {
- return res
- .status(409)
- .send({ error: 'Emailer is not enabled on this instance.' })
- .end()
+ if (isEmailEnabled() === false) {
+ return res.fail({
+ status: HttpStatusCode.CONFLICT_409,
+ message: 'Emailer is not enabled on this instance.'
+ })