commit
1fef5fd818
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "score-tracker",
|
"name": "score-tracker",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./bin/www"
|
"start": "node ./bin/www"
|
||||||
|
|
|
@ -35,7 +35,7 @@ router.get('/index/dropdown', async function(req, res, next) {
|
||||||
seasonsData = await seasons.retrieveAll();
|
seasonsData = await seasons.retrieveAll();
|
||||||
sportsData = await sports.retrieveAll();
|
sportsData = await sports.retrieveAll();
|
||||||
gendersData = await genders.retrieveBySport(latestGame.sportID);
|
gendersData = await genders.retrieveBySport(latestGame.sportID);
|
||||||
divisionsData = await divisions.retrieve(latestGame.sportID);
|
divisionsData = await divisions.retrieve(latestGame.sportID, latestGame.gender);
|
||||||
teamsData = await teams.retrieve(latestGame.sportID);
|
teamsData = await teams.retrieve(latestGame.sportID);
|
||||||
} else {
|
} else {
|
||||||
seasonsData = await seasons.retrieveAll();
|
seasonsData = await seasons.retrieveAll();
|
||||||
|
@ -102,7 +102,7 @@ router.get('/submit', async function(req, res, next) {
|
||||||
seasonsData = await seasons.retrieveAll();
|
seasonsData = await seasons.retrieveAll();
|
||||||
sportsData = await sports.retrieveAll();
|
sportsData = await sports.retrieveAll();
|
||||||
gendersData = await genders.retrieveBySport(latestGame.sportID);
|
gendersData = await genders.retrieveBySport(latestGame.sportID);
|
||||||
divisionsData = await divisions.retrieve(latestGame.sportID);
|
divisionsData = await divisions.retrieve(latestGame.sportID, latestGame.gender);
|
||||||
teamsData = await teams.retrieve(latestGame.sportID);
|
teamsData = await teams.retrieve(latestGame.sportID);
|
||||||
} else {
|
} else {
|
||||||
seasonsData = await seasons.retrieveAll();
|
seasonsData = await seasons.retrieveAll();
|
||||||
|
|
Reference in New Issue