Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
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:
1 parent
3eea1c35a6
commit
2b0db26a93
171 files changed
+1477
-807
No files matched your search
@@ -39,7 +39,7 @@ export async function PATCH(
|
||||
try {
|
||||
body = await parseJsonBody(request);
|
||||
} catch {
|
||||
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
|
||||
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
|
||||
}
|
||||
|
||||
const parsed = programPatchSchema.safeParse(body);
|
||||
@@ -62,7 +62,7 @@ export async function PATCH(
|
||||
return NextResponse.json({ ok: true, data: { ...rowToProgram(row), published: row.published } });
|
||||
} catch (err) {
|
||||
if (isUniqueViolation(err) && err.constraint === "programs_slug_key") {
|
||||
return errorResponse("این slug قبلاً استفاده شده است", 409);
|
||||
return errorResponse("این slug قبلا استفاده شده است", 409);
|
||||
}
|
||||
console.error("admin update program error:", err);
|
||||
return errorResponse("خطای سرور", 500);
|
||||
|
||||
Reference in new issue
Block a user