mirror of
https://github.com/certd/certd.git
synced 2026-06-24 19:47:34 +08:00
perf: 修复检查全部某些情况下无效的bug,优化公共触发站点证书检查定时逻辑
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user