ToS Editor
This commit is contained in:
10
src/actions/items/commissions/tos/getTos.ts
Normal file
10
src/actions/items/commissions/tos/getTos.ts
Normal file
@ -0,0 +1,10 @@
|
||||
'use server';
|
||||
|
||||
import prisma from "@/lib/prisma";
|
||||
|
||||
export async function getLatestTos(): Promise<string | null> {
|
||||
const tos = await prisma.termsOfService.findFirst({
|
||||
orderBy: { createdAt: 'desc' },
|
||||
});
|
||||
return tos?.markdown ?? null;
|
||||
}
|
Reference in New Issue
Block a user