diff --git a/src/realtime-gtfs/router.js b/src/realtime-gtfs/router.js index 665d811..3fffe8a 100644 --- a/src/realtime-gtfs/router.js +++ b/src/realtime-gtfs/router.js @@ -120,11 +120,11 @@ async function vehiclePositionsCb (req, res) { return; } - const validatationResult = validationResult(req); - if (!validatationResult.isEmpty()) { + const validations = validationResult(req); + if (!validations.isEmpty()) { res.header('Cache-Control', 'no-store'); res.status(400); - res.json({ errors: validatationResult.array() }); + res.json({ errors: validations.array() }); return; }