diff --git a/src/backend/services/awards.service.js b/src/backend/services/awards.service.js index b947ae4..074e289 100644 --- a/src/backend/services/awards.service.js +++ b/src/backend/services/awards.service.js @@ -303,8 +303,8 @@ async function getPointsAwardEntityBreakdown(userId, rules) { } } - const stations = Array.from(stationMap.values()); - const confirmedStations = stations.filter((s) => s.confirmed); + const stationList = Array.from(stationMap.values()); + const confirmedStations = stationList.filter((s) => s.confirmed); const totalPoints = confirmedStations.reduce((sum, s) => sum + s.points, 0); return { @@ -313,8 +313,8 @@ async function getPointsAwardEntityBreakdown(userId, rules) { name: 'Special Stations Award', description: 'Contact special stations to earn points', }, - entities: stations, - total: stations.length, + entities: stationList, + total: stationList.length, confirmed: confirmedStations.length, totalPoints, };