mirror of
https://github.com/certd/certd.git
synced 2026-05-17 05:37:30 +08:00
fix: 修复流水线分组可以被所有人看见的bug
This commit is contained in:
@@ -38,7 +38,8 @@ export class NotificationController extends CrudController<NotificationService>
|
||||
|
||||
@Post('/list', { summary: Constants.per.authOnly })
|
||||
async list(@Body(ALL) body) {
|
||||
body.userId = this.getUserId();
|
||||
body.query = body.query ?? {};
|
||||
body.query.userId = this.getUserId();
|
||||
return super.list(body);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user