feat: add append-only course/user data import and expand user profile

Support uploading structured JSON to create courses, classes, and students without wiping existing data, and merge user name fields while adding gender and registration details from source sheets.
This commit is contained in:
2026-08-15 01:31:44 +03:30
parent 35704409ec
commit bf5e66fa95
19 changed files with 2314 additions and 569 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ const activityLogger = (req, res, next) => {
actor: actor?._id || null,
actorUsername: actor?.username || req.body?.username || null,
actorName: actor
? `${actor.name || ''} ${actor.surname || ''}`.trim() || actor.username
? `${actor.name || ''}`.trim() || actor.username
: req.body?.username || null,
action,
resource: resolveResource(path),