From 3e4800d47bf4997d2211a0d487073ffd4aff0463 Mon Sep 17 00:00:00 2001 From: Toaster Date: Fri, 15 Nov 2024 22:24:37 +0100 Subject: [PATCH] fix reviewer rating showing incorrectly, fix a naming mistake --- Refresh.GameServer/Endpoints/Game/ReviewEndpoints.cs | 2 +- Refresh.GameServer/Types/Reviews/SerializedGameReview.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Refresh.GameServer/Endpoints/Game/ReviewEndpoints.cs b/Refresh.GameServer/Endpoints/Game/ReviewEndpoints.cs index d1d43697..762baffc 100644 --- a/Refresh.GameServer/Endpoints/Game/ReviewEndpoints.cs +++ b/Refresh.GameServer/Endpoints/Game/ReviewEndpoints.cs @@ -80,7 +80,7 @@ public Response GetReviewsForLevel(RequestContext context, GameDatabaseContext d [GameEndpoint("reviewsBy/{username}", ContentType.Xml)] [AllowEmptyBody] - public Response GetReviewsForLevel(RequestContext context, GameDatabaseContext database, string username, + public Response GetReviewsByUser(RequestContext context, GameDatabaseContext database, string username, DataContext dataContext) { GameUser? user = database.GetUserByUsername(username); diff --git a/Refresh.GameServer/Types/Reviews/SerializedGameReview.cs b/Refresh.GameServer/Types/Reviews/SerializedGameReview.cs index 18d25f30..0653fe89 100644 --- a/Refresh.GameServer/Types/Reviews/SerializedGameReview.cs +++ b/Refresh.GameServer/Types/Reviews/SerializedGameReview.cs @@ -74,7 +74,7 @@ public class SerializedGameReview : IDataConvertableFrom