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

+2 -2
View File
@@ -40,7 +40,7 @@ export async function PATCH(
try {
body = await request.json();
} catch {
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
}
const parsed = articlePatchSchema.safeParse(body);
@@ -76,7 +76,7 @@ export async function PATCH(
});
} catch (err) {
if (isUniqueViolation(err) && err.constraint === "articles_one_featured") {
return errorResponse("فقط یک مقالهٔ ویژهٔ منتشرشده مجاز است", 409);
return errorResponse("فقط یک مقاله ویژه منتشر شده مجاز است", 409);
}
console.error("admin update article error:", err);
return errorResponse("خطای سرور", 500);