Skip to content

Commit

Permalink
docs: hide inactive sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 2, 2024
1 parent e9c9d59 commit 3bc7229
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/docs/src/stores/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const useSponsorsStore = defineStore('sponsors', () => {
const { bucket } = useCosmic()
const { objects = [] }: { objects: Sponsor[] } = (
await bucket?.objects
.find({ type: 'sponsors' })
.find({
type: 'sponsors',
'metadata.active': true,
})
.props('metadata,slug,title')
.sort('created_at')
) || {}
Expand Down

0 comments on commit 3bc7229

Please sign in to comment.