fix(server): restore staff exclusion in StudentsService.findAll default filter

This commit is contained in:
2026-07-09 15:28:18 +08:00
parent 9b36284f1a
commit 897ffbe018

View File

@@ -24,7 +24,7 @@ export class StudentsService {
if (query?.status) {
where.status = query.status;
} else if (!query?.includeArchived) {
where.status = Not(In(['archived']));
where.status = Not(In(['archived', 'staff']));
}
return this.repo.find({ where, order: { createdAt: 'DESC' }, relations: ['tenant'] });
}