feat(students): add active/paused/left status with hidden filter
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const { normalizeStudentStatus } = require('./lib/students');
|
||||
const PHOTO_JOB_ACTIONS = new Set(['ai', 'ai_face', 'ai_upscale', 'enhance', 'restore', 'rollback']);
|
||||
const LESSON_REPORT_TEXT_MAX = 5000;
|
||||
const LESSON_REPORT_TOPIC_MAX = 300;
|
||||
@@ -320,6 +321,7 @@ function normalizeRestoreData(data) {
|
||||
group_id: optInt(x.group_id, 0, 2147483647),
|
||||
photo_path: optUploadPath(x.photo_path, 255),
|
||||
profile: sanitizeStudentProfile(x.profile),
|
||||
status: normalizeStudentStatus(x.status) || 'active',
|
||||
deleted_at: optTs(x.deleted_at),
|
||||
purge_at: optTs(x.purge_at),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user