Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api/proffile): Fix bad property validation on profile update
The code changes in this commit fix a bug related to property validation on profile updates. Specifically, the `ProfileRoles` property was not being properly validated and could result in unexpected behavior. This issue has been resolved by updating the code in the `ProfileController.cs` and `PlayerService.cs` files. In `ProfileController.cs`, the code has been modified to correctly handle the case where the user's roles are null or empty. Previously, it would return an empty enumerable instead of an empty array. In `PlayerService.cs`, some unnecessary using statements have been removed, which improves code cleanliness and organization. Additionally, in the `UserProfileFlagsDTO.cs` file, the default value for the `ProfileRoles` property has been set to an empty array to ensure consistency and avoid potential issues with null values.
- Loading branch information