From e5028c870d845e8671428eebe749324fe673f9a6 Mon Sep 17 00:00:00 2001 From: jvyden Date: Thu, 4 Aug 2022 15:41:17 -0400 Subject: [PATCH] Include hint_start in hearted slots and users --- .../Controllers/Slots/ListController.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs index d7980bee..e577b9d1 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/ListController.cs @@ -117,8 +117,11 @@ public class ListController : ControllerBase return this.Ok ( - LbpSerializer.TaggedStringElement - ("favouriteSlots", response, "total", this.database.HeartedLevels.Include(q => q.User).Count(q => q.User.Username == username)) + LbpSerializer.TaggedStringElement("favouriteSlots", response, new Dictionary + { + { "total", this.database.HeartedLevels.Include(q => q.User).Count(q => q.User.Username == username) }, + { "hint_start", pageStart + Math.Min(pageSize, 30) }, + }) ); } @@ -175,8 +178,11 @@ public class ListController : ControllerBase return this.Ok ( - LbpSerializer.TaggedStringElement - ("favouriteUsers", response, "total", this.database.HeartedProfiles.Include(q => q.User).Count(q => q.User.Username == username)) + LbpSerializer.TaggedStringElement("favouriteUsers", response, new Dictionary + { + { "total", this.database.HeartedProfiles.Include(q => q.User).Count(q => q.User.Username == username) }, + { "hint_start", pageStart + Math.Min(pageSize, 30) }, + }) ); }