feat(pipelines): add commits query api.
This commit is contained in:
@ -26,6 +26,13 @@ export class PipelinesService extends BaseDbService<Pipeline> {
|
||||
return this.repository.find(dto);
|
||||
}
|
||||
|
||||
async findOneWithProject(id: string) {
|
||||
return await this.repository.findOne({
|
||||
where: { id },
|
||||
relations: ['project'],
|
||||
});
|
||||
}
|
||||
|
||||
async create(dto: CreatePipelineInput) {
|
||||
await this.isDuplicateEntity(dto);
|
||||
return await this.repository.save(this.repository.create(dto));
|
||||
|
Reference in New Issue
Block a user