Refactor event fetching and display: Change event retrieval order to descending by date, enhance event data structure to include registration counts, and update UI components to reflect these changes for better user experience.
This commit is contained in:
@@ -6,7 +6,7 @@ import { getBackgroundImage } from "@/lib/preferences";
|
||||
export default async function EventsPage() {
|
||||
const events = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
date: "asc",
|
||||
date: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user