@@ -103,7 +103,7 @@ export class AdminService {
|
|||||||
|
|
||||||
// Update role if roleId is provided
|
// Update role if roleId is provided
|
||||||
if (roleId) {
|
if (roleId) {
|
||||||
const role = await this.em.findOne(Role, { id: roleId, isSystem: false });
|
const role = await this.em.findOne(Role, { id: roleId });
|
||||||
if (!role) {
|
if (!role) {
|
||||||
throw new NotFoundException('Role not found');
|
throw new NotFoundException('Role not found');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user