refactor: 统一userProject查询参数传递逻辑

This commit is contained in:
xiaojunnuo
2026-06-04 00:00:40 +08:00
parent cdb812ef63
commit 2cbacb4338
30 changed files with 158 additions and 134 deletions
@@ -225,11 +225,11 @@ export class AccessService extends BaseService<AccessEntity> {
if (userId == null) {
return [];
}
const userProjectQuery = this.buildUserProjectQuery(userId, projectId);
return await this.repository.find({
where: {
id: In(ids),
userId,
projectId,
...userProjectQuery,
},
select: {
id: true,