chore: project controller

This commit is contained in:
xiaojunnuo
2026-02-11 00:07:29 +08:00
parent 784bcb0aa5
commit 1e416b9f8a
33 changed files with 773 additions and 53 deletions
@@ -51,7 +51,8 @@ export class AutoAInitSite {
//加载一次密钥
await this.sysSettingsService.getSecret();
await this.sysSettingsService.reloadPrivateSettings();
//加载设置
await this.sysSettingsService.reloadSettings();
// 授权许可
try {
@@ -993,7 +993,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
return await this.repository.count({ where: { userId } });
}
async getSimplePipelines(pipelineIds: number[], userId?: number) {
async getSimplePipelines(pipelineIds: number[], userId?: number,projectId?:number) {
return await this.repository.find({
select: {
id: true,
@@ -1001,7 +1001,8 @@ export class PipelineService extends BaseService<PipelineEntity> {
},
where: {
id: In(pipelineIds),
userId
userId,
projectId
}
});
}