Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Andykmcc committed May 3, 2024
1 parent 685362e commit 04bbcb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/realtime-gtfs/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 04bbcb9

Please sign in to comment.