From 78e30117ed00cee65ebb9e04a884b6b2c7decc15 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 17 Aug 2016 23:21:13 -0400 Subject: [PATCH] proper naming --- controllers/runs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/runs.js b/controllers/runs.js index af7e0fc..ff6bfd7 100644 --- a/controllers/runs.js +++ b/controllers/runs.js @@ -5,8 +5,8 @@ var Runs = require('../models/run.js'); controller.use(bodyParser.json()); controller.get('/', function(req, res){ - Runs.findAll().then(function(data){ - res.json(data); + Runs.findAll().then(function(runs){ + res.json(runs); }); });