Add guidelines

This commit is contained in:
2025-12-27 12:59:42 +01:00
parent 13685d100c
commit 9d18b6da02
7 changed files with 186 additions and 1 deletions

View File

@ -0,0 +1,11 @@
'use server';
import { prisma } from "@/lib/prisma";
export async function getActiveGuidelines(): Promise<string | null> {
const guidelines = await prisma.commissionGuidelines.findFirst({
where: { isActive: true },
orderBy: { createdAt: 'desc' },
});
return guidelines?.markdown ?? null;
}