-
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.
feat(ReplayController): Update RenderMinimap endpoint
- Added a new HTTP PATCH endpoint `RenderMinimap` to the `ReplayController` class. - The endpoint triggers minimap rendering on a post's replay and is only accessible by administrators. - It accepts the ID of the post to render the replay's minimap for, as well as an optional parameter `force` to force rendering even if it has already been rendered. - If no post with the specified GUID is found, it returns a 404 status code. - The job to render the minimap is enqueued successfully and returns a 202 status code. fix(UserService): Fix GetUserSeedTokenAsync method - Fixed an issue in the `GetUserSeedTokenAsync` method of the `UserService` class. - Replaced `await GetUserAsync(id)` with `await context.Users.FindAsync(id)` to retrieve user information from the database correctly. feat(MinimapRenderingService): Add force parameter to RenderPostReplayMinimapAsync method - Added a new optional parameter `force` to the `RenderPostReplayMinimapAsync` method of the `MinimapRenderingService` class. - This parameter allows forcing rendering of the minimap even if it has already been rendered before. - If not forced and either no post or a post with already rendered minimap is found, skipping minimap rendering occurs and logs are updated accordingly. feat(MinimapRenderingService): Add force parameter to UploadReplayMinimapAsync method - Added a new optional parameter `force` to the private method `_UploadReplayMinimapAsync`. - This parameter allows forcing upload of the minimap even if it has already been uploaded before.
- Loading branch information
1 parent
6c913f0
commit 29b9943
Showing
4 changed files
with
40 additions
and
27 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
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