Fix minimum age 12 and ensure assignment catalog seeds on startup.

Persian age validation messages, clearer homework entry points, and seed assignment definitions so «تکالیف من» is not empty after deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ar.badiei
2026-09-22 07:24:40 +03:30
co-authored by Cursor
parent c6243caa35
commit 8c37c15697
12 changed files with 115 additions and 29 deletions
+1
View File
@@ -109,6 +109,7 @@ describe('profile API', () => {
body: JSON.stringify({ name: 'Sara', age: 11 }),
});
assert.equal(underage.status, 422);
assert.match(String(underage.body.error?.message ?? ''), /حداقل سن 12/);
const teenOk = await requestJson(app, '/users/me/profile', {
method: 'PATCH',