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:
12
actions/mangeTest.ts
Normal file
12
actions/mangeTest.ts
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user