mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
chore: history projectId
This commit is contained in:
@@ -89,7 +89,12 @@ export class HistoryController extends CrudController<HistoryService> {
|
||||
@Post('/list', { summary: Constants.per.authOnly })
|
||||
async list(@Body(ALL) body) {
|
||||
const { projectId, userId } = await this.getProjectUserIdRead()
|
||||
body.query.projectId = projectId
|
||||
if (!body){
|
||||
body = {}
|
||||
}
|
||||
if (projectId){
|
||||
body.projectId = projectId
|
||||
}
|
||||
|
||||
const isAdmin = this.authService.isAdmin(this.ctx);
|
||||
if (!isAdmin) {
|
||||
|
||||
Reference in New Issue
Block a user