forked from wangziqi/gongxue-base
fix(server): restore staff exclusion in StudentsService.findAll default filter
This commit is contained in:
@@ -24,7 +24,7 @@ export class StudentsService {
|
|||||||
if (query?.status) {
|
if (query?.status) {
|
||||||
where.status = query.status;
|
where.status = query.status;
|
||||||
} else if (!query?.includeArchived) {
|
} 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'] });
|
return this.repo.find({ where, order: { createdAt: 'DESC' }, relations: ['tenant'] });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user