From d35c331b76c6323649329d5e653f93e8d29d6f4e Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Fri, 25 Jul 2025 19:19:39 -0700 Subject: [PATCH] submissions: fill out new fields --- pkg/web_api/maps.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/web_api/maps.go b/pkg/web_api/maps.go index 0475992..1526692 100644 --- a/pkg/web_api/maps.go +++ b/pkg/web_api/maps.go @@ -69,6 +69,13 @@ func (svc *Service) ListMaps(ctx context.Context, params api.ListMapsParams) ([] Creator: item.Creator, GameID: int32(item.GameID), Date: item.Date.Unix(), + CreatedAt: item.CreatedAt.Unix(), + UpdatedAt: item.UpdatedAt.Unix(), + Submitter: item.Submitter, + Thumbnail: item.Thumbnail, + AssetVersion: item.AssetVersion, + LoadCount: item.LoadCount, + Modes: item.Modes, }) } @@ -92,6 +99,13 @@ func (svc *Service) GetMap(ctx context.Context, params api.GetMapParams) (*api.M Creator: mapResponse.Creator, GameID: int32(mapResponse.GameID), Date: mapResponse.Date.Unix(), + CreatedAt: mapResponse.CreatedAt.Unix(), + UpdatedAt: mapResponse.UpdatedAt.Unix(), + Submitter: mapResponse.Submitter, + Thumbnail: mapResponse.Thumbnail, + AssetVersion: mapResponse.AssetVersion, + LoadCount: mapResponse.LoadCount, + Modes: mapResponse.Modes, }, nil }