Update RoleService to use nativeUpdate for soft delete functionality, ensuring more efficient database operations when marking roles as deleted.

This commit is contained in:
2025-11-18 13:00:03 +03:30
parent c24775d091
commit 3fc7cccb80
+1 -1
View File
@@ -128,7 +128,7 @@ export class RoleService {
throw new NotFoundException('Role not found'); throw new NotFoundException('Role not found');
} }
await this.roleRepository.update({ id }, { deletedAt: new Date() }); await this.roleRepository.nativeUpdate({ id }, { deletedAt: new Date() });
return { message: 'Role deleted successfully' }; return { message: 'Role deleted successfully' };
} }
} }