Skip to content

Commit 58a13b1

Browse files
committed
feat: filter agerange in leaderboards
1 parent 7a90815 commit 58a13b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

frontend/app/components/standings/StandingsGlobal.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const { data, error, fetching } = useStandingsGlobalPageQuery({
3232
variables: computed(() => ({
3333
entityType: LeaderboardEntityType.Persons,
3434
first: 20,
35+
filter: {
36+
ageRange: { min: 14, max: 26 },
37+
},
3538
})),
3639
pause: computed(() => !isAuthReady.value),
3740
})

frontend/app/components/standings/StandingsLocal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const { data, error, fetching } = useStandingsLocalPageQuery({
4040
entityType: entityType.value,
4141
filter: {
4242
churchId: me.value?.church.id,
43+
ageRange: { min: 14, max: 36 },
4344
},
4445
})),
4546
pause: computed(() => !isAuthReady.value || !me.value?.church.id),

0 commit comments

Comments
 (0)