chore: server code formatting

This commit is contained in:
Rafael Taranto 2025-05-12 15:35:00 +01:00
parent aedabcbdee
commit 68517170e2
234 changed files with 9824 additions and 6195 deletions

View file

@ -4,8 +4,9 @@ const router = express.Router()
const helpers = require('../route-helpers')
const respond = require('../respond')
function stateChange (req, res, next) {
helpers.stateChange(req.deviceId, req.deviceTime, req.body)
function stateChange(req, res, next) {
helpers
.stateChange(req.deviceId, req.deviceTime, req.body)
.then(() => respond(req, res))
.catch(next)
}