mirror of
https://github.com/certd/certd.git
synced 2026-07-05 11:27:34 +08:00
chore: project controller ok
This commit is contained in:
@@ -80,6 +80,7 @@ export class SiteInfoController extends CrudController<SiteInfoService> {
|
||||
async update(@Body(ALL) bean) {
|
||||
await this.checkOwner(this.service,bean.id,"write");
|
||||
delete bean.userId;
|
||||
delete bean.projectId;
|
||||
await this.service.update(bean);
|
||||
const entity = await this.service.info(bean.id);
|
||||
if (entity.disabled) {
|
||||
|
||||
Reference in New Issue
Block a user