1
0
mirror of https://github.com/Fayorg/calendrier-avant.git synced 2026-05-27 17:18:38 +02:00

add: dashboard with server actions

This commit is contained in:
2023-12-15 01:32:27 +01:00
parent 5b8038126b
commit 564edb70f8
3 changed files with 59 additions and 0 deletions

12
actions/mangeTest.ts Normal file
View File

@@ -0,0 +1,12 @@
"use server";
import prisma from "@/lib/prisma";
export async function setTestActive(id: number, active: boolean) {
const users = await prisma.users.findFirst();
console.log(users);
return true;
}