mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
chore: 1
This commit is contained in:
@@ -103,4 +103,10 @@ export class PipelineController extends CrudController<PipelineService> {
|
||||
await this.service.cancel(historyId);
|
||||
return this.ok({});
|
||||
}
|
||||
|
||||
@Post('/count', { summary: Constants.per.authOnly })
|
||||
async count() {
|
||||
const count = await this.service.count({ userId: this.getUserId() });
|
||||
return this.ok({ count });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user