Skip to content

Commit

Permalink
remove api call on about page
Browse files Browse the repository at this point in the history
  • Loading branch information
toddwords committed Nov 19, 2024
1 parent 9ee2116 commit 82e5b39
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,32 +261,33 @@ app.get("/index_staging", async (req,res) => {
res.render("index_staging")
})
app.get("/about", async (req,res) => {
const donorinfo = await getDatabaseEntries("f10d523dd9b24d44ae2d9a6c26b4f5ee", [{property:"Name", direction:"ascending"}], {property:"Public", "checkbox": {"equals": true}})
const donorData = donorinfo.map((donor) => {
console.log(donor)
return parseDonors(donor)
})
console.log(donorData)
// const donorinfo = await getDatabaseEntries("f10d523dd9b24d44ae2d9a6c26b4f5ee", [{property:"Name", direction:"ascending"}], {property:"Public", "checkbox": {"equals": true}})
// const donorData = donorinfo.map((donor) => {
// console.log(donor)
// return parseDonors(donor)
// })
// console.log(donorData)

const testimonialinfo = await getDatabaseEntries("16ea90c83765437c86f87bd13a205ca6", [{property:"Date", direction:"descending"}])
const testimonialData = testimonialinfo.map((testimonial) => {
console.log(testimonial)
return parseTestimonials(testimonial)
})
console.log(testimonialData)
// const testimonialinfo = await getDatabaseEntries("16ea90c83765437c86f87bd13a205ca6", [{property:"Date", direction:"descending"}])
// const testimonialData = testimonialinfo.map((testimonial) => {
// console.log(testimonial)
// return parseTestimonials(testimonial)
// })
// console.log(testimonialData)


const pressinfo = await getDatabaseEntries("c0fcb9243b7947afb35111753c7b24c4", [{property:"Date", direction:"descending"}])
const pressData = pressinfo.map((press) => {
console.log(press)
return parseNotionPage(press)
})
// const pressinfo = await getDatabaseEntries("c0fcb9243b7947afb35111753c7b24c4", [{property:"Date", direction:"descending"}])
// const pressData = pressinfo.map((press) => {
// console.log(press)
// return parseNotionPage(press)
// })

console.log(pressData)
// console.log(pressData)



res.render("about/about", {donors: donorData, testimonials: testimonialData, presses: pressData})
res.render("about/about")
// res.render("about/about", {donors: donorData, testimonials: testimonialData, presses: pressData})
})

app.get("/about2", async (req,res) => {
Expand Down

0 comments on commit 82e5b39

Please sign in to comment.