mirror of
https://github.com/certd/certd.git
synced 2026-05-16 13:17:29 +08:00
perf: 支持授权给管理员查看和下载用户证书
This commit is contained in:
@@ -1072,4 +1072,16 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
});
|
||||
return res?.status;
|
||||
}
|
||||
|
||||
async getPipelineUserId(pipelineId: number) {
|
||||
const res = await this.repository.findOne({
|
||||
select: {
|
||||
userId: true
|
||||
},
|
||||
where: {
|
||||
id: pipelineId
|
||||
}
|
||||
});
|
||||
return res?.userId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user