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:
@@ -16,8 +16,13 @@ async function startServer() {
|
||||
await connectPrisma();
|
||||
logger.info('database connection established');
|
||||
const { seedCourseSessions } = await import('./modules/sessions/sessions.service.js');
|
||||
const { seedAssignmentDefinitions } = await import(
|
||||
'./modules/assignments/assignments.service.js'
|
||||
);
|
||||
await seedCourseSessions();
|
||||
logger.info('course sessions seeded');
|
||||
const assignmentCount = await seedAssignmentDefinitions();
|
||||
logger.info({ assignmentCount }, 'assignment definitions seeded');
|
||||
} catch (err) {
|
||||
logger.warn({ err }, 'database connection failed at startup; /ready will report unavailable');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user