print year and price
This commit is contained in:
parent
cf0f4e7568
commit
86613ab0d6
2
api.ts
2
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user