Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
feat: include platforms on user list
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jun 16, 2024
1 parent 6e52a7e commit 2a62fcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import prisma from "@/models/db";
import Items from "@/components/list/Items";

export default async function Page() {
const users = await prisma.user.findMany();
const users = await prisma.user.findMany({
include: {
platforms: true,
},
});

return (
<div className="mx-auto max-w-3xl px-4 sm:px-6 lg:max-w-7xl lg:px-8">
Expand Down

0 comments on commit 2a62fcb

Please # to comment.