mirror of https://github.com/certd/certd
fix: 修复角色无法删除的bug
parent
8f22a358cf
commit
66629a591a
|
@ -135,5 +135,6 @@ export class RoleService extends BaseService<RoleEntity> {
|
|||
if (urs.length > 0) {
|
||||
throw new Error('该角色已被用户使用,无法删除');
|
||||
}
|
||||
await this.deleteWhere({ id: In(idArr) });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue