maj url photo + page 404 + gestion programmation d'article
This commit is contained in:
@@ -10,6 +10,12 @@ export default async function BlogPage() {
|
||||
|
||||
try {
|
||||
posts = await prisma.blogPost.findMany({
|
||||
where: {
|
||||
status: 'PUBLISHED',
|
||||
publishedAt: {
|
||||
lte: new Date()
|
||||
}
|
||||
},
|
||||
orderBy: { createdAt: 'desc' }
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user