-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(PlayerService): Handle nullable player objects + otherfixes
- Added a nullability check to the `playerProfile` variable in the `PlayerController` class. - Previously, the `playerProfile` variable was of type `Player`, but it is now of type `Player?`. - Modified the `GetPlayerAsync` and `UpdatePlayerRecordAsync` methods in the `PlayerService` class to handle nullable player objects. - The return types of these methods have been changed from `Task<Player>` to `Task<Player?>`. - If a player object is null, it will be handled appropriately and a null value will be returned.
- Loading branch information
1 parent
32c4aac
commit b92e292
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters