Flag added to league header

This commit is contained in:
Lucas Patenaude
2024-04-13 18:45:55 -06:00
parent 14a19ccdf7
commit a7c2553f90
3 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ const fetchLeaguesData = async (req, res, next) => {
// Attach the data to res.locals
res.locals.league = {
area: {
league_flag: leagueData.area.flag,
},
competition: {
league_id: leagueData.competition.id,
league_name: leagueData.competition.name,