From 107c29e0bef9bbe1a2bd6556a670d7be89943b27 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 14:09:37 +0000 Subject: [PATCH 1/2] Initial plan From 41431f5a855ffcf57ef3751101c02c220941a4d6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 14:10:52 +0000 Subject: [PATCH 2/2] fix: use explicit null checks in backfill script to handle zero values Co-authored-by: mightea <3684954+mightea@users.noreply.github.com> --- scripts/backfill-costs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backfill-costs.ts b/scripts/backfill-costs.ts index afb4aa8..e8b6abd 100644 --- a/scripts/backfill-costs.ts +++ b/scripts/backfill-costs.ts @@ -21,7 +21,7 @@ async function backfill() { console.log(`Found ${motos.length} motorcycles.`); for (const moto of motos) { - if (moto.purchasePrice) { + if (moto.purchasePrice != null) { const factor = getFactor(moto.currencyCode); const normalizedPrice = moto.purchasePrice * factor; @@ -38,7 +38,7 @@ async function backfill() { console.log(`Found ${records.length} maintenance records.`); for (const record of records) { - if (record.cost) { + if (record.cost != null) { const factor = getFactor(record.currency); const normalizedCost = record.cost * factor;