mirror of
https://github.com/certd/certd.git
synced 2026-07-14 17:53:28 +08:00
refactor: 统一userProject查询参数传递逻辑
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user