Update inventory.js

This commit is contained in:
Sam Poder 2024-06-11 18:43:35 -07:00 committed by GitHub
parent 08d9f7e767
commit ec21466393
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,8 @@ export default async function handler(req, res) {
smallName: record.fields['Name Small Text'],
hours: record.fields['Hours'],
imageURL: record.fields['Image URL'],
formURL: record.fields['Order Form URL'],
description: record.fields['Description'],
flavorText: record?.fields['Flavor text']?.map(recordID => {
const flavorRecord = data.flavor.find(f => f.id == recordID)
const result = {
@ -65,4 +67,4 @@ export default async function handler(req, res) {
})
res.status(200).json({inventory: inventoryResults, selfClicks})
}
}