|
|
|
|
@ -59,8 +59,7 @@ export async function getServerSideProps(context) {
|
|
|
|
|
const users = await prisma.user.findMany({
|
|
|
|
|
include: {
|
|
|
|
|
gains: true
|
|
|
|
|
},
|
|
|
|
|
take: 5
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const user = await prisma.user.findUnique({
|
|
|
|
|
@ -90,8 +89,6 @@ export async function getServerSideProps(context) {
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
console.log("🚀 ~ file: admin.tsx:87 ~ getServerSideProps ~ gainsRetires", gainsRetires)
|
|
|
|
|
|
|
|
|
|
const produits = await prisma.produit.findMany({})
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|