diff --git a/gddController.js b/gddController.js index bc92c74598545207f3e3c424df3721a667fb0cf5..63dea02ee5c886c5db7b0d5bcf4e4b0e0ce76bf5 100644 --- a/gddController.js +++ b/gddController.js @@ -1,4 +1,4 @@ -Gdd = require('./model'); +Gdd = require('./model.js'); exports.year_gdd = function (req, res) { var year = parseInt(req.params.year) @@ -42,6 +42,7 @@ exports.year_gdd = function (req, res) { parameter_error: "latitude", message: latitude.toString() + " is out of bounds for GDD calculations. Must be between 24.083334 - 49.916668" }); + } if (req.body.hasOwnProperty("t_base")) { t_base = parseFloat(req.body.t_base);