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
@@ -22,7 +22,7 @@ export async function PATCH(
|
||||
try {
|
||||
body = await parseJsonBody(request);
|
||||
} catch {
|
||||
return errorResponse("بدنهٔ درخواست JSON معتبر نیست", 400);
|
||||
return errorResponse("بدنه درخواست JSON معتبر نیست", 400);
|
||||
}
|
||||
|
||||
const parsed = registrationStatusSchema.safeParse(body);
|
||||
@@ -35,7 +35,7 @@ export async function PATCH(
|
||||
`UPDATE registration_leads SET status = $1 WHERE id = $2 RETURNING *`,
|
||||
[parsed.data.status, id],
|
||||
);
|
||||
if (res.rows.length === 0) return errorResponse("لید ثبتنام یافت نشد", 404);
|
||||
if (res.rows.length === 0) return errorResponse("لید ثبت نام یافت نشد", 404);
|
||||
return NextResponse.json({ ok: true, data: res.rows[0] });
|
||||
} catch (err) {
|
||||
console.error("admin update registration error:", err);
|
||||
@@ -57,7 +57,7 @@ export async function DELETE(
|
||||
`DELETE FROM registration_leads WHERE id = $1 RETURNING id`,
|
||||
[id],
|
||||
);
|
||||
if (res.rows.length === 0) return errorResponse("لید ثبتنام یافت نشد", 404);
|
||||
if (res.rows.length === 0) return errorResponse("لید ثبت نام یافت نشد", 404);
|
||||
return NextResponse.json({ ok: true });
|
||||
} catch (err) {
|
||||
console.error("admin delete registration error:", err);
|
||||
|
||||
Reference in new issue
Block a user