feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s
Some checks failed
Build and Push App / build (push) Failing after 16m2s
This commit is contained in:
12
lib/legal.ts
Normal file
12
lib/legal.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { prisma } from './prisma';
|
||||
|
||||
export async function getLegalDocument(type: 'CGU' | 'CGV') {
|
||||
try {
|
||||
return await prisma.legalDocument.findUnique({
|
||||
where: { type }
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(`Error fetching ${type}:`, error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user