mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 修复角色无法删除的bug
This commit is contained in:
@@ -135,5 +135,6 @@ export class RoleService extends BaseService<RoleEntity> {
|
|||||||
if (urs.length > 0) {
|
if (urs.length > 0) {
|
||||||
throw new Error('该角色已被用户使用,无法删除');
|
throw new Error('该角色已被用户使用,无法删除');
|
||||||
}
|
}
|
||||||
|
await this.deleteWhere({ id: In(idArr) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user