fix(docker): ensure prisma generate runs on build and add explicit admin model types

This commit is contained in:
mstfyldz
2026-08-23 02:00:31 +03:00
parent 99951328ed
commit 5d57a6ef0b
5 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { redirect } from 'next/navigation';
import { Trash2, CheckCircle } from 'lucide-react';
import { deleteContact, markContactAsRead } from '../actions';
import { revalidatePath } from 'next/cache';
import type { ContactMessage } from '@prisma/client';
export default async function ContactAdminPage() {
const session = await getSession();
@@ -31,7 +32,7 @@ export default async function ContactAdminPage() {
</tr>
</thead>
<tbody>
{messages.map(msg => (
{messages.map((msg: ContactMessage) => (
<tr key={msg.id} className="border-b border-slate-200 dark:border-slate-800 hover:bg-slate-50 dark:hover:bg-slate-800/50">
<td className="p-4 text-sm">{msg.createdAt.toLocaleDateString('tr-TR')}</td>
<td className="p-4 text-sm font-medium">{msg.name}</td>