perf: 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑

This commit is contained in:
xiaojunnuo
2026-04-11 21:50:44 +08:00
parent 1e549dfd43
commit ee535895a3
7 changed files with 131 additions and 97 deletions
@@ -400,7 +400,15 @@ export class UserService extends BaseService<UserEntity> {
id: userId,
...body,
})
}
async getAllUserIds() {
const users = await this.repository.find({
select: ['id'],
where: {
status: 1,
},
})
return users.map(item => item.id);
}
}
@@ -284,4 +284,14 @@ export class ProjectService extends BaseService<ProjectEntity> {
return project?.isSystem ?? false;
}
async getAllProjectIds() {
const projects = await this.repository.find({
select: ['id'],
where: {
disabled: false,
},
})
return projects.map(item => item.id);
}
}