mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: CMS module issues
This commit is contained in:
@@ -94,7 +94,9 @@ export class MenuController extends BaseController<
|
||||
this.validate({
|
||||
dto: body,
|
||||
allowedIds: {
|
||||
parent: (await this.menuService.findOne(body.parent))?.id,
|
||||
parent: body?.parent
|
||||
? (await this.menuService.findOne(body.parent))?.id
|
||||
: undefined,
|
||||
},
|
||||
});
|
||||
return await this.menuService.create(body);
|
||||
|
||||
Reference in New Issue
Block a user