fix(epc): follow energyMainsGas rename in new-approach resolver

The merge of main renamed epc_property.energyMainsGas ->
energyGasConnectionAvailable (migration 0252), but the new-approach
resolver read the old property name, which main never touched so it
survived the merge with no conflict and broke the build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-01 15:56:16 +00:00
parent 59297c3495
commit 4941e75683

View file

@ -355,7 +355,7 @@ async function resolveNewConditionReport(
numberHeatedRooms: chosen.heatedRoomsCount ?? null,
numberOpenFireplaces: chosen.openChimneysCount ?? null,
numberExtensions: chosen.extensionsCount ?? null,
mainsGas: chosen.energyMainsGas ?? null,
mainsGas: chosen.energyGasConnectionAvailable ?? null,
// GAP: no energy tariff in the new graph — omitted.
energyTariff: null,
currentEnergyDemand: sumKwh,