mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
Update inventory.js
This commit is contained in:
parent
08d9f7e767
commit
ec21466393
1 changed files with 3 additions and 1 deletions
|
|
@ -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})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue