filter locked levels from lucky dip (#1055)

* filter locked levels from lucky dip

* yeah sure

* put the filter in a more reasonable place
This commit is contained in:
Kat 2024-08-28 18:16:08 -07:00 committed by GitHub
commit fb2192d37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View file

@ -263,6 +263,7 @@ public class SlotsController : ControllerBase
PaginationData pageData = this.Request.GetPaginationData();
SlotQueryBuilder queryBuilder = this.FilterFromRequest(token);
queryBuilder.AddFilter(new LockedSlotFilter());
pageData.TotalElements = await StatisticsHelper.SlotCount(this.database, queryBuilder);