mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-12 08:11:27 +00:00
Simplify filters and make cross control slots not show by default (#782)
* Simplify filters and make cross control slots not show by default Also sort author levels by oldest levels first rather than newest levels first. * Fix unit test expecting slots to sorted by timestamp descending * Remove errant whitespace
This commit is contained in:
parent
2a85b6a136
commit
a69d94054b
20 changed files with 114 additions and 58 deletions
|
@ -49,7 +49,9 @@ public class SlotsController : ControllerBase
|
|||
|
||||
SlotQueryBuilder queryBuilder = this.FilterFromRequest(token).AddFilter(new CreatorFilter(targetUserId));
|
||||
|
||||
SlotSortBuilder<SlotEntity> sortBuilder = new SlotSortBuilder<SlotEntity>().AddSort(new FirstUploadedSort());
|
||||
SlotSortBuilder<SlotEntity> sortBuilder = new SlotSortBuilder<SlotEntity>()
|
||||
.AddSort(new FirstUploadedSort())
|
||||
.SortDescending(false);
|
||||
|
||||
List<SlotBase> slots = await this.database.GetSlots(token, queryBuilder, pageData, sortBuilder);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue