Skip to content

Commit

Permalink
Fix validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
benborgers committed Apr 27, 2021
1 parent b6357ad commit babdcdb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions api/table.js
Expand Up @@ -38,13 +38,17 @@ module.exports = async (req, res) => {

const collectionId = pageData.results[0].value.collection_id
const collectionViewId = pageData.results[0].value.view_ids[0]


const tableData = await call("queryCollection", {
collectionId,
collectionViewId,
query: {},
loader: {
type: "table"
type: 'table',
limit: 99999,
userTimeZone: 'UTC',
loadContentCover: true
}
})

Expand Down Expand Up @@ -95,7 +99,7 @@ module.exports = async (req, res) => {
}

output.push({
fields,
fields,
id: page.value.id,
emoji: page.value.format && page.value.format.page_icon,
created: page.value.created_time,
Expand All @@ -105,4 +109,4 @@ module.exports = async (req, res) => {


return res.json(output)
}
}

1 comment on commit babdcdb

@vercel
Copy link

@vercel vercel bot commented on babdcdb Apr 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.