Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled

Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 16:26:21 +03:30
1 parent 3eea1c35a6
commit 2b0db26a93
171 files changed
+1477 -807

No files matched your search

+3 -3
View File
@@ -29,7 +29,7 @@ export async function PATCH(
try {
body = await parseJsonBody(request);
} catch {
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
}
const parsed = legalPatchSchema.safeParse(body);
@@ -47,7 +47,7 @@ export async function PATCH(
try {
const res = await query<LegalPageRow>(spec.sql, [...spec.params, slug]);
if (res.rows.length === 0) return errorResponse("صفحهٔ حقوقی یافت نشد", 404);
if (res.rows.length === 0) return errorResponse("صفحه حقوقی یافت نشد", 404);
const row = res.rows[0];
return NextResponse.json({
ok: true,
@@ -70,7 +70,7 @@ export async function DELETE(
const { slug } = await params;
try {
const res = await query(`DELETE FROM legal_pages WHERE slug = $1 RETURNING slug`, [slug]);
if (res.rows.length === 0) return errorResponse("صفحهٔ حقوقی یافت نشد", 404);
if (res.rows.length === 0) return errorResponse("صفحه حقوقی یافت نشد", 404);
revalidateSite();
return NextResponse.json({ ok: true });
} catch (err) {