diff --git a/routes/jobs_by_sector.js b/routes/jobs_by_sector.js index 8755efa..252ba9a 100644 --- a/routes/jobs_by_sector.js +++ b/routes/jobs_by_sector.js @@ -68,7 +68,7 @@ module.exports = function(app, pg, conString) { //create array of years var year = (req.query.year).split(","); - var yeardomain = ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022"]; + var yeardomain = ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]; if (!validate(year, yeardomain)) { res.send('one of your year inputs is not valid!'); return; @@ -209,7 +209,7 @@ app.get('/jobs0', function(req, res) { //create array of years var year = (req.query.year).split(","); - var yeardomain = ["2020", "2021", "2022"]; + var yeardomain = ["2020", "2021", "2022", "2023"]; if (!validate(year, yeardomain)) { res.send('one of your year inputs is not valid!'); return; @@ -531,7 +531,7 @@ app.get('/jobs0', function(req, res) { //create array of years var year = (req.query.year).split(","); - var yeardomain = ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022"]; + var yeardomain = ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]; if (!validate(year, yeardomain)) { res.send('one of your year inputs is not valid!'); return;