mirror of
https://github.com/certd/certd.git
synced 2026-04-15 21:40:53 +08:00
chore:
This commit is contained in:
@@ -37,10 +37,9 @@ export class OpenKeyController extends CrudController<OpenKeyService> {
|
||||
}
|
||||
|
||||
@Post('/add', { summary: Constants.per.authOnly })
|
||||
async add() {
|
||||
const bean: any = {};
|
||||
bean.userId = this.getUserId();
|
||||
const res = await this.service.add(bean);
|
||||
async add(@Body(ALL) body: any) {
|
||||
body.userId = this.getUserId();
|
||||
const res = await this.service.add(body);
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user