This commit is contained in:
cool_team 2023-05-30 18:34:39 +08:00
parent d535082c07
commit 96aaba5ae6

View File

@ -75,7 +75,7 @@ export class BaseSysRoleService extends BaseService {
await this.baseSysRoleDepartmentEntity.delete({ roleId });
await Promise.all(
departmentIds.map(async e => {
return await this.baseSysRoleMenuEntity.save({
return await this.baseSysRoleDepartmentEntity.save({
roleId,
departmentId: e,
});