mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 05:42:27 +00:00
Include hint_start in hearted slots and users
This commit is contained in:
parent
6c989e7923
commit
e5028c870d
1 changed files with 10 additions and 4 deletions
|
@ -117,8 +117,11 @@ public class ListController : ControllerBase
|
||||||
|
|
||||||
return this.Ok
|
return this.Ok
|
||||||
(
|
(
|
||||||
LbpSerializer.TaggedStringElement
|
LbpSerializer.TaggedStringElement("favouriteSlots", response, new Dictionary<string, object>
|
||||||
("favouriteSlots", response, "total", this.database.HeartedLevels.Include(q => q.User).Count(q => q.User.Username == username))
|
{
|
||||||
|
{ "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
|
return this.Ok
|
||||||
(
|
(
|
||||||
LbpSerializer.TaggedStringElement
|
LbpSerializer.TaggedStringElement("favouriteUsers", response, new Dictionary<string, object>
|
||||||
("favouriteUsers", response, "total", this.database.HeartedProfiles.Include(q => q.User).Count(q => q.User.Username == username))
|
{
|
||||||
|
{ "total", this.database.HeartedProfiles.Include(q => q.User).Count(q => q.User.Username == username) },
|
||||||
|
{ "hint_start", pageStart + Math.Min(pageSize, 30) },
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue