From 86613ab0d6fab817dc02266b28b3d01fb438e944 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 30 Aug 2023 17:58:29 +0000 Subject: [PATCH] print year and price --- api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.ts b/api.ts index 549b50c..3964425 100644 --- a/api.ts +++ b/api.ts @@ -41,7 +41,7 @@ router.get('/price_info/part_cust/:partcode/:customer', async (ctx) => { for (const row of result.rows) { if (typeof row.season === 'object' && row.season !== null) { for (const year in row.season) { - console.log(row.season[year].price_usd) + console.log(`${year}: ` + row.season[year].price_usd) } } }