From ac7964547789a419d1c1fa28aef3ae8c4499388e Mon Sep 17 00:00:00 2001 From: Joerg Date: Fri, 16 Jan 2026 09:42:10 +0100 Subject: [PATCH] Fix variable name conflict in getPointsAwardEntityBreakdown Rename 'stations' variable to 'stationList' to avoid conflict with destructured 'stations' from rules. Co-Authored-By: Claude Sonnet 4.5 --- src/backend/services/awards.service.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, };