Commit 7e0a87df authored by Jared Pereira's avatar Jared Pereira

fix getstaticprops on course page

parent 0610bde7
Pipeline #174305309 passed with stages
in 1 minute and 35 seconds
......@@ -303,6 +303,6 @@ export const getStaticPaths = async () => {
let prisma = new PrismaClient()
let courses = await prisma.courses.findMany({select:{id: true, slug: true}})
return {paths:courses.map(course=>{
return {params: {id: course.id, slug: course.slug}}
return {params: {id: course.id.toString(), slug: course.slug}}
}), fallback: true}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment